If formula showing "0" instead of blank

ChargerRT

Board Regular
Joined
Jul 24, 2016
Messages
68
Hi folks, I am working on this formula that is supposed to do this in column Z
IF cell V=N/A then I need the result of P*R*Y, if V doesn’t contain N/A then, I need the result of P*R*W*Y and finally if P, R, W and Y are blank, I should get nothing.
This is the formula I used, I am not sure why I am getting value “0” instead of blank when cells P, R,W and Y are blank

=IF(V7="N/A",P7*R7*Y7,IF(ISERROR(SEARCH("N/A",V7)),P7*R7*W7*Y7,IF(ISBLANK(P7),"",IF(ISBLANK(R7),"",IF(ISBLANK(W7),"",IF(ISBLANK(Y7),""))))))

As you can see, row 7 is blank so, Z7 should be blank too but it is showing "0".

Table_1.jpg
 

Some videos you may like

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

AliGW

Banned
Joined
Mar 9, 2014
Messages
3,628
Try this instead:


=IF(V7="N/A",P7*R7*Y7,IF(ISERROR(SEARCH("N/A",V7)),P7*R7*W7*Y7,IF(AND(ISBLANK(P7),(ISBLANK(R7),ISBLANK(W7),ISBLANK(Y7)),""))))))
 

AliGW

Banned
Joined
Mar 9, 2014
Messages
3,628
I can't see the image, just an icon. Please explain in words what is happening.
 

ChargerRT

Board Regular
Joined
Jul 24, 2016
Messages
68

ADVERTISEMENT

This what it says
The formula you typed contains an error.
For information about fixing common formula problems, click help.
To get assistance in entering a function, click Function Wizard (Formulas tab, Function Library group).
If you are not trying to enter a formula avoid using an equal sign (=) or minus sign (-) or precede it with a single quotation mark (‘).

I also tried this
=IF(V7="N/A",P7*R7*Y7,IF(ISERROR(SEARCH("N/A",V7)),P7*R7*W7*Y7,IF(ISBLANK(P7)&ISBLANK(R7)&ISBLANK(W7)&ISBLANK(Y7),"")))
but still getting 0.
 
Last edited:

63falcondude

Well-known Member
Joined
Jan 15, 2016
Messages
3,572
Try =IF(AND(P7="",R7="",W7="",Y7=""),"",IF(V7="N/A",P7*R7*Y7,P7*R7*W7*Y7))
 

Watch MrExcel Video

Forum statistics

Threads
1,123,259
Messages
5,600,575
Members
414,390
Latest member
plimbu

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