Google Sheets can keep a calculation blank until a required cell has an entry. Use IF with a not-empty comparison to run the calculation for completed rows and return empty text for the rest.
Choose what should count as empty before filling the column. A cell can look empty but still contain a formula or spaces. That changes how the formula treats an apparently unused row.
In this guide
Run a calculation after the first entry
Suppose column A contains an item name, B contains quantity, and C contains unit price. Put the total in D2, outside those input cells. Enter this formula and press Enter:
=IF(A2<>"",B2*C2,"")
The <> symbol means not equal. The two double quotes with nothing between them represent an empty text value. Here, the formula checks whether A2 contains something other than empty text.

When the test is true, IF returns the multiplication result. When it's false, IF returns empty text.
Google's steps list IF's three inputs as the condition, the result for TRUE, and the result for FALSE.
Try a filled item row and a completely empty row before copying the formula. The filled row should calculate; the empty row should look blank. Compare the result with its inputs to catch a reversed test.
If your actual task is a total of completed entries, use the COUNTIF not-blank method. IF chooses an output for each row; COUNTIF counts matching cells across a range.
Choose the cell that really means ready
An item name doesn't mean an order has both a quantity and a price. The first formula only checks A2. If somebody enters the name before the numbers, the multiplication can still show zero.
Require both numeric-input cells to be nonempty when that matches your workflow:
=IF(AND(B2<>"",C2<>""),B2*C2,"")
AND returns TRUE only when both checks pass. A row stays visually blank until B2 and C2 each have a value. This prevents a partially entered row from looking like a finished zero-dollar order.
A genuine numeric zero passes this nonempty test. That's useful for a free item or a quantity of zero. Testing B2>0 would reject zero. Use that only when you need a positive number, rather than any entry.
This test checks for entries, not whether the entries are sensible numbers. A word typed into a price cell can still cause a calculation error. Correct the entry in the price cell rather than hiding every error behind a blank result.
I'd choose the readiness rule before copying the formula. Otherwise, a perfectly working formula can still show the wrong business result because it checks the wrong input column.
Treat formulas as content when needed
Use ISBLANK to check whether the input cell is completely empty. A cell containing a formula counts as filled. To label cells that contain something, enter:
=IF(ISBLANK(A2),"","Entered")
ISBLANK returns TRUE for a genuinely empty cell, so this version returns empty text first. Any content gives the result Entered. The results are in the opposite order from the first formula because ISBLANK asks whether the cell is empty.
A2 containing a formula whose result is empty text produces Entered in this version. It contains a formula even though its displayed result is empty. The first formula would treat that same empty-text result as empty.
The ISBLANK behavior includes spaces and hidden characters as content.
Select the surprising entry. The formula bar shows any formula or text stored in that cell, including spaces that aren't obvious in the grid.
For more complicated reversals, the NOT operator guide explains how TRUE and FALSE switch. For a single empty-value rule, the direct comparison keeps the expression simple.
Ignore ordinary spaces in imported entries
Spaces can make a blank-looking cell pass the nonempty comparison. When those spaces shouldn't count as an entry, test a trimmed version of the value:
=IF(LEN(TRIM(A2))>0,"Entered","")
TRIM removes ordinary leading and trailing spaces and reduces repeated spaces between words. LEN counts the characters remaining. A value made only of ordinary spaces becomes zero characters, so IF returns empty text.
This formula checks the cleaned value without rewriting A2. That helps when the original column belongs to an import or another person's data. You can still compare the untouched entry with the original import.
TRIM doesn't remove every kind of invisible character. Nonbreaking spaces, which can arrive from copied web text, need separate cleanup.
If spaces continue to affect your answer, try the rule on a new manually typed entry before changing the whole dataset.
Choose this version for text fields such as names or descriptions. For quantity and price, keep checking the numeric-input cells. Cleaning up text doesn't check whether those entries are valid numbers.
Fill the formula and check the references
After checking the result in the first row, select its cell and drag the small fill handle through the needed rows. References without dollar signs change as you fill: A2 becomes A3, and the multiplication uses that row's B and C cells.
Inspect one of the last rows you filled. Its formula should refer to that same row. If every row points to A2, look for dollar signs such as $A$2, which hold a reference in place.
Keep the formula out of the cell it checks. Putting an IF test of A2 inside A2 creates a circular reference because the result depends on itself. Use a separate output column, such as D in the order example.
A formula parse error means something in the expression isn't readable to Sheets. Check straight double quotes, the opening equals sign, and matching parentheses. Your spreadsheet locale may require semicolons instead of commas.
If the sheet still produces an unexpected result, make a small example with a blank, a zero, a space, and a formula returning empty text.
Post your example through the community link provided by the function reference, with the formula and expected results.
The Short Version
Use IF with <>"" to skip empty-looking values, ISBLANK to check whether a cell contains anything at all, and a trimmed length test for ordinary spaces. Pick the input that means the row is ready before filling the formula.
Checked December 4, 2026.







