HELP: Leaving a cell blank when another cell has a formula not yet calculated

%3CLINGO-SUB%20id%3D%22lingo-sub-3069686%22%20slang%3D%22en-US%22%3EHELP%3A%20Leaving%20a%20cell%20blank%20when%20another%20cell%20has%20a%20formula%20not%20yet%20calculated%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3069686%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20trying%20to%20leave%20a%20cell%20blank%20until%20there%20is%20a%20value%20in%20another%20cell.%20Example%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECell%20D11%20has%20a%20formula%3A%26nbsp%3B%3DSUMIF(ADV.1!%24B%243%3A%24B%24186%2CSummary!D3%2CADV.1!%24E%243%3A%24E%24186)%3C%2FP%3E%3CP%3EIn%20Cell%20D12%20I%20want%20to%20calculate%20the%20running%20bal%20showing%20Year%20Budget%20-%20Amount%20Spent%20in%20cell%20D11%3A%26nbsp%3B%3C%2FP%3E%3CP%3E%3DC10-D11%3C%2FP%3E%3CP%3EBut%20I%20don't%20want%20the%20value%20in%20Cell%20D12%20to%20show%20until%20there%20is%20a%20number%20in%20Cell%20D11.%20I've%20tried%20the%20%22IsBlank%22%20but%20because%20there%20is%20a%20formula%20in%20D11%20it%20isn't%20showing%20as%20blank%20and%20keeps%20showing%20a%20number%20in%20D12.%3C%2FP%3E%3CP%3ECould%20you%20help%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Screenshot.PNG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F341738iA4D0E091E162D619%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Screenshot.PNG%22%20alt%3D%22Screenshot.PNG%22%20%2F%3E%3C%2FSPAN%3Es%20showing%20a%20number%20in%20D12.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECould%20you%20help%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3069686%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Contributor

Hello,

 

I am trying to leave a cell blank until there is a value in another cell. Example:

 

Cell D11 has a formula: =SUMIF(ADV.1!$B$3:$B$186,Summary!D3,ADV.1!$E$3:$E$186)

In Cell D12 I want to calculate the running bal showing Year Budget - Amount Spent in cell D11: 

=C10-D11

But I don't want the value in Cell D12 to show until there is a number in Cell D11. I've tried the "IsBlank" but because there is a formula in D11 it isn't showing as blank and keeps showing a number in D12.

Could you help?

 

Screenshot.PNGs showing a number in D12.

 

Could you help?

 

 

7 Replies

@Rosiid 

 

Ostensibly, you might write:

 

=IF(D11="", "", C10-D11)

or

=IF(AND(D11<>"",C10<>""), C10-D11, "")

 

Note that those formula do __not__ "leave the cell blank" per se.  They make the cell __appear__ blank. 

 

In fact, they contain a value when they appear blank, namely the null string (text).  Consequently, it might be tricky to reference them in some arithmetic expressions.  Also, ISBLANK would return FALSE because that function really tests for __empty__ cells; that is, cells with no value.

 

However, your description is confusing because if D11 contains that SUMIF formula, there is always a value in D11.  It might be zero.

 

So if the formulas above do not solve your problem, or they create new ones that you cannot solve yourself, attach an Excel file, not a screen image.  See the "browse" link at the bottom of the reply pane. 

 

If you not see the link (I'm told that some users do not), upload the Excel file to a file-sharing website, and post the public download URL.  I like box.net/files; others like dropbox.com.

@Joe User  this did not solve the problem. I am attaching the spreadsheet for reference. I need columns D - O, rows 8, 9, 13,14 to be blank until there are values in rows 6 or 7. Currently I have formulas in rows 6 & 7.

 

https://cisnerosgrp-my.sharepoint.com/:x:/g/personal/rosariod_mwcompany_com/EYg0iakbvqtOpEaiKK1RoJgB... 

@Rosiid Have slightly changed the set-up of the schedule and changed the formulae in rows 8 and 9, trusting that you can do the rest yourself, following the same principles. Added some data in ADV.1 to test.

Thank you so much! I will test it out in the morning.

@Rosiid  wrote: ``I need columns D - O, rows 8, 9, 13,14 to be blank until there are values in rows 6 or 7. Currently I have formulas in rows 6 & 7.``

 

Thank you for providing the Excel file.  Unfortunately, I do not understand what you are trying to do.

 

In particular, I do not understand the distinction you are trying to make by saying "until there are values in rows 6 or 7".

 

As you note, you have formulas in rows 6 and 7 that always return a numeric value.

 

I can only imagine (wild guess) that you want to treat zeros as "not a value".  The zero value appears as a dash ("-") because of the Accounting format.  In that case, your formulas might be:

 

D8: =IF(D6*D7=0, 0, SUM($C$5)-SUM(D6:D7))

D9: =IF(D6*D7=0, "", =SUM(D6:D7)/$C$5)

D13: =IF(D12=0, 0, C11-D12)

D14: =IF(D12=0, "", D13/$C$11)

 

You do not have a formula in D14.  So my formula above is wild speculation.

 

The expression D6*D7=0 is a tricky way of saying OR(D6=0,D7=0).  That is, D6*D7 is zero if either value is zero.

 

The formulas in D9 and D14 return the null string ("") because I assume that you do not want to see 0%.  If 0% is acceptable, no change is needed to D9 and presumably to D14.

 

OTOH, if you would like to see a dash, you can use your original formula in D9, but with the following Custom format:  [=0]"-"; 0%

 

Be that as it may, it looks like @Riny_van_Eekelen has jumped in to help.  Follow his lead, since I do not have the patience to contribute further.

 

@Riny_van_Eekelen  .... For your edification, there is no reason to use double-negate ("--") in expressions like =($C$8-SUM($C$6:D7))*--(SUM(D6:D7)<>0) in D8.

 

I know that your intent is to coerce TRUE and FALSE into 1 and 0.

 

But there is nothing special about double-negation for that purpose.  __Any__ arithmetic operation accomplishes that.  Double-negation is simply "one" (really two) arithmetic operation(s).

 

Likewise, the multiplication suffices as __one__ arithmetic operation.  So, you can write simply =($C$8-SUM($C$6:D7))*(SUM(D6:D7)<>0) .

 

-----

 

But it is probably more efficient, albeit not as terse, to write

IF(SUM(D6:D7)<>0, $C$8-SUM($C$6:D7), 0) .

 

The IF operation is not a true function.  It does not evaluate all of its "parameters", then "call" an internal IF "function".  Instead, it evaluates the "parameters" left-to-right, stopping when the first "true" expression is evaluated.  In effect, the IF "function" is an __operator__ that has the __form__ of a function.

 

(FYI, that is __not__ true of the new IFS function.  Sigh.)

@Joe UserThank you all so much, this really helped!