If This cell = Zero, Then Show "N/A" (Please Help, Confused)

HAWA

New Member
Joined
Jun 19, 2002
Messages
28
Hi, is there a way to add to the following formulas "IF CELL P11=0, THEN 'N/A'"?

These are the formulas where I need this to happen:

1) =IF((F15+I15+L15+P15+S15),(Q19)/(F15+I15+L15+P15+S15),0)

2) =IF(P11,(B16)/P11,0)

3) SUM(B17,F17,I17,L17,P17,S17)


All the formulas above are tied one way or another to cell P11. So just to recap, if P11 = 0, then 1, 2, and 3 should show N/A. Currently, 1, 2, and 3 show 0 when P11 is 0. One problem I see at this point is that item #3 is really a sum of a bunch of items #2. Is that going to cause a problem in item #3 if items #2 show text instead of numbers? Please help, I just barely get by in Excel.

Thank you,
Sam Manzella
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"

Andrew Poulsom

MrExcel MVP
Joined
Jul 21, 2002
Messages
73,092
=IF(P11=0,NA(),IF((F15+I15+L15+P15+S15),(Q19)/(F15+I15+L15+P15+S15),0))

=IF(P11,(B16)/P11,NA())

=IF(P11=0,NA(),SUM(B17,F17,I17,L17,P17,S17))

You can also use the ISNA function to test for #N/A.
 

nehpets12

Active Member
Joined
Feb 22, 2002
Messages
453
"=IF(P11=0,"N/A",IF((F15+I15+L15+P15+S15),(Q19)/(F15+I15+L15+P15+S15),0))"

"=IF(P11=0,"N/A",IF(P11,(B16)/P11,0))"

"=IF(P11=0,"N/A",SUM(B17,F17,I17,L17,P17,S17))"

hope this is what you want
 

HAWA

New Member
Joined
Jun 19, 2002
Messages
28
Wow, you guys are great!

Andrew, I tried your formula, it worked but the result was #N/A instead of N/A.

nehpets12, I ended up using your because it gave me the N/A.

I'm guessing that there is an easy tweak to Andrew's formula forr it to give me the answer I needed.

Anyway, this is EXACTLY what I was looking for.

Thank you, very very much!
Sam
 

Forum statistics

Threads
1,144,329
Messages
5,723,737
Members
422,512
Latest member
MHau5

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
Top