Need existing formula to show blank cell if another cell is blank.

Oryan77

Board Regular
Joined
May 9, 2009
Messages
176
I have two formulas that need the same function.

In cell H7, I have the following formula:
Code:
=IF(F7="","",ROUNDDOWN(((W47*N7)+(X47*N9)+(Y47*N11)+(Z47*N13)+(AA47*N15)+(AB47*N17)+(AC47*N19)+(AD47*N21)+(AE47*N23)+(AF47*N25))/F32*(J7/100),0))

I need to change that formula so that if cell F7 has a value, but cell D7 is blank, then cell H7 will stay blank.

The second formula in cell R7 is:
Code:
=IF(P7="","",IF(F30>(P7+8),"",IF(F30<(P7-8),"0",ROUNDDOWN((N7*W37)/IF(F32=0,1,F32),0))))

I need to change that formula so that if cell P7 has a value, but cell N7 is blank, then cell R7 will stay blank. Thank you!
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Try using

Code:
=IF(AND(F7<>"",D7=""),"",ROUNDDOWN(((W47*N7)+(X47*N9)+(Y47*N11)+(Z47*N13)+(AA47*N15)+(AB47*N17)+(AC47*N19)+(AD47*N21)+(AE47*N23)+(AF47*N25))/F32*(J7/100),0))

I'm sure you can handle the 2nd question yourself based on the answer provided
 
Upvote 0
Try using

Code:
=IF(AND(F7<>"",D7=""),"",ROUNDDOWN(((W47*N7)+(X47*N9)+(Y47*N11)+(Z47*N13)+(AA47*N15)+(AB47*N17)+(AC47*N19)+(AD47*N21)+(AE47*N23)+(AF47*N25))/F32*(J7/100),0))

I'm sure you can handle the 2nd question yourself based on the answer provided

Thanks, that seems to work, however, now if cell F7 is blank, I get #N/A as a result in cell H7. How do I tweak this so H7 stays blank if F7 is blank? Sorry if I should have mentioned that before. I wasn't aware it needed to be brought to attention.

In case this also needs mentioning, cell H7 also needs to stay blank when cell D7 is blank. If cell D7 has data, but cell F7 is blank, then H7 still needs to stay blank. I didn't mention any of this before because the original code was already working like that before your addition. I apologize if this was important to know beforehand.
 
Upvote 0
Maybe then
Code:
=IF(OR(F7="",D7=""),"",ROUNDDOWN(((W47*N7)+(X47*N9)+(Y47*N11)+(Z47*N13)+(AA47*N15)+(AB47*N17)+(AC47*N19)+(AD47*N21)+(AE47*N23)+(AF47*N25))/F32*(J7/100),0))
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,289
Members
452,631
Latest member
a_potato

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top