Summaries & lookups
Pivot tables, calculated fields, XLOOKUP and its errors.
4 articles in this department
-
Sort by month in a Google Sheets pivot table, not A to Z
F1 Rows: Month (Order Ascending) · Columns: Priority (Order Ascending) · Values: SUM of Sales Before as Sheets built it F G H I J 2 Month High Low Medium Grand Total 3 Apr 1320 275 900 2495 4 Feb 980 300 1100 2380 5 Jan 1200 400 850 2450 6 Jun 1600 610 980 3190 7 Mar 1950 650 700 3300 8 May 1050 520 1240 2810 9 Grand Total 8100 2755 5770 16625 What changed Jan, Feb, Mar and May dragged up Medium dragged left of Low After five drags, Order is Custom F G H I J 2 M
-
Google Sheets COUNTIF with OR: count one value or another
G2 =COUNTIFS(C2:C, "Late", C2:C, "Absent") Before as you see it A B C D F G 1 Name Day Code Shift What we count Count 2 Emily Mon Present Day Late or Absent (COUNTIFS) 0 3 Jacob Mon Late Night Late or Absent (one COUNTIF) 0 4 Sarah Mon Absent Day Night shift, Late or Absent 0 5 Michael Mon Present Night Rows in the log 16 6 Emily Tue Late Day 7 Jacob Tue Present Night 8 Sarah Tue Present Day 9 Michael Tue Absent Night 10 Emily Wed Present Day 11
-
Google Sheets COUNTIF contains text: wildcards and IF
F2 =COUNTIF(B2:B11, "*"&E2&"*") Before as you see it B C D E F 1 Note Has keyword? Keyword Notes with keyword 2 Delivery came late again No late 1 3 Great service, friendly driver No 4 Order was late and the box was damaged No 5 late No 6 Loved the chocolate muffins No 7 Late by two days No 8 Driver was polite No 9 Can you deliver on Sundays? No 10 Wrong item, please call me No 11 Running late is fine, food was
-
Calculated field in a Google Sheets pivot table: add one for margin %
J1 =(Revenue-Cost)/Revenue Before SUM of Margin % G H I J 1 Region SUM of Revenue SUM of Cost SUM of Margin % 2 East 10000 7900 95.00% 3 North 9300 7000 115.00% 4 South 8700 6300 100.00% 5 West 9900 7800 95.00% 6 Grand Total 37900 29000 405.00% What changed SUM of Margin % removed from Values Calculated field Profit margin added After calculated field G H I J 1 Region SUM of Revenue SUM of Cost Profit margin 2 East 10000 7900 21.00% 3 North 9300 7000 24.7