Audit a Suggested Formula Before Filling It Down
Inspect a conditional sum for confirmed seats and test it against hand-counted rows before copying it.
Today's Goals
- Distinguish row count, seat count, and recorded receipts.
- Check a proposed SUMIF or SUMIFS formula against fixed rows.
- Document range locks, blanks, and a counterexample before filling down.
Plain-Language Walkthrough
A formula can be valid and answer the wrong question
The D1 import audit produced a clean eight-row source and a ten-seat baseline. Now the desk wants confirmed seats for each event. A familiar spreadsheet trap appears immediately: COUNTIFS can count rows whose Event and Status match, and its syntax may be perfectly valid. Yet the question asks for seats, not bookings. Repair Cafe has three confirmed booking rows, A02, A05, and A08, but they reserve one, two, and one seats. The answer is four seats. The difference is not a rounding problem. It is a mismatch between the unit in the question and the unit returned by the formula.
Use a conditional sum over the Seats column. Name the imported source tab Registrations. In the sample import, the columns are EntryID, Event, Channel, Seats, PaidUSD, Status; the eight data rows occupy rows 2 through 9. If A2 of a separate summary sheet holds an event name, a possible Google Sheets expression is =SUMIFS(Registrations!$D$2:$D$9,Registrations!$B$2:$B$9,A2,Registrations!$F$2:$F$9,"confirmed"). The dollar signs keep the three source ranges fixed when the summary formula moves down, while A2 becomes A3 and A4. This is a candidate to inspect, not a magic string to paste into an unrelated workbook. If your import changes column order or row boundaries, adapt the references and check them again.
Interview questions
Why can COUNTIFS be correct syntax and still answer the wrong question?为什么 COUNTIFS 语法正确仍会回答错问题?
Common in ChinaCommon overseasBasic#gemini-sheets#spreadsheet-review🔒 Unlock this chapter to see the answer keys.
How do you test a suggested conditional-sum formula before filling it down?向下填充前怎样检验建议的条件求和公式?
Common in ChinaCommon overseasIntermediate#gemini-sheets#spreadsheet-review🔒 Unlock this chapter to see the answer keys.
What is the correct treatment of blank or text-valued Seats cells?名额列出现空白或文本时应如何处理?
Common in ChinaCommon overseasDeep dive#gemini-sheets#spreadsheet-review🔒 Unlock this chapter to see the answer keys.
