Table of Contents
Use VLOOKUP to find one matching record, SUMIF or COUNTIF to summarize a category, and FILTER or QUERY to return a live set of rows. The examples below show the inputs each formula expects. Replace the sample ranges and values with your own.
These examples use commas as argument separators. If your spreadsheet locale uses semicolons, use the separator Sheets expects.
1. VLOOKUP: Find an exact match
Use this to find the value in column C for the ID in E2, with IDs in column A. FALSE asks for an exact match. If an ID appears twice, the first match wins.
=VLOOKUP(E2,A2:C100,3,FALSE)
2. SUMIF: Total one category
If column A contains a region and column C contains amounts, this totals the amounts for East. Keep the criteria and amount ranges aligned.
=SUMIF(A2:A100,"East",C2:C100)
3. CONCATENATE: Join text with a separator
If columns B and C contain first and last names, supply the space as a separate argument.
=CONCATENATE(B2," ",C2)
4. COUNTIF: Count rows with a status
Count how many cells in the status column contain Complete. Use COUNTIFS when multiple conditions must all be true.
=COUNTIF(D2:D100,"Complete")
5. ARRAYFORMULA: Fill a result down a column
Enter this once in an empty output column. It joins the two names when column B has a value. Keep cells below the formula clear so the results can expand.
=ARRAYFORMULA(IF(B2:B100="","",B2:B100 & " " & C2:C100))
6. FILTER: Return matching rows
This returns each row where column D is Complete. The condition range needs the same number of rows as the output range. FILTER returns #N/A if it finds no match.
=FILTER(A2:C100,D2:D100="Complete")
7. QUERY: Select and sort in one formula
This pulls columns A and C, removes rows without a value in C, and sorts by C from largest to smallest. The final 1 tells Sheets that the range contains one header row.
=QUERY(A1:D100,"select A, C where C is not null order by C desc",1)
8. IMPORTRANGE: Pull data from a second file
Replace SOURCE_SHEET_URL with the source spreadsheet link and Sales with its tab name. Select Allow access at the first authorized connection. Share the destination only with people allowed to see the imported data.
=IMPORTRANGE("SOURCE_SHEET_URL","Sales!A1:D100")
See the Google Sheets function reference for syntax options. For a live connection, see the IMPORTRANGE walkthrough. If you only need a temporary view of your original data, try these spreadsheet sorting and filtering basics.
Reader Comments 0
Sign in with email or Google to join the discussion.