How to flag if cells in a row are not either blank or 0?

Kenichi

New Member
Joined
Sep 17, 2009
Messages
30
Hi,

I'm thinking this should be a pretty simple formula, but nothing I've tried has worked for me.

My sheet calculates pricing differences between two sources for different attributes (in this case A, B, and C attributes). Some cells are blank, some cells contain "0", and some cells contain a number if there was a discrepancy between prices. The data looks like:

ABCDE
1SKUA DifferenceB DifferenceC DifferenceOverall Discrepancy?
2EX10
3EX2-500

<tbody>
</tbody>

What formula can I enter in column E to flag if the values in cells B, C, or D are not a blank or "0" value? In the above example, cell E3 should return an ERROR value, because cell C3 is not blank or "0".

Thanks!
 
Last edited:

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
hope this helps.

E3=IF(SUM(B3:D3)<>0,"Error","")
What about if B3 were +50 and C3 (as shown) was still -50 and D3 (as shown) was still 0?

I think this formula should work though...

E2 (copied down)
------------------------------------
=IF(TRIM(SUBSTITUTE(B2&C2&D2,0,""))="","","Error")
 
Last edited:
Upvote 0
What about if B3 were +50 and C3 (as shown) was still -50 and D3 (as shown) was still 0?

I think this formula should work though...

E2 (copied down)
------------------------------------
=IF(TRIM(SUBSTITUTE(B2&C2&D2,0,""))="","","Error")


Perfect. That formula seems to be working great.

Thank you both!
 
Upvote 0

Forum statistics

Threads
1,216,739
Messages
6,132,440
Members
449,728
Latest member
teodora bocarski

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