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
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
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)),""))))))
 
Upvote 0
I can't see the image, just an icon. Please explain in words what is happening.
 
Upvote 0
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:
Upvote 0

Forum statistics

Threads
1,213,551
Messages
6,114,273
Members
448,559
Latest member
MrPJ_Harper

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