8. How to clean data with Google Sheets functions (part 1): Remove duplicates and COUNTIF functions

#datacleaning #datapreparation #GoogleSheets

Step 1: Remove any duplicates

Select all columns, in the menu bar choose Data, then Data cleanup and select Remove duplicates.

Click Data has header row andselect the columns where to remove duplicates i.e. column D for names

Step 2: Clean up any data that does not make sense with COUNTIF function

The COUNTIF function returns a conditional count across a range.

Syntax

COUNTIF(range, criterion)

  • range – The range that is tested against criterion.
  • criterion – The pattern or test to apply to range.

i.e. COUNTIF(A2:A9, “Taxi”) to see how many Taxi entries are in the table rows A2:A9

Comments

Leave a Reply