Can't get an OR statement to work

still learning

Well-known Member
Joined
Jan 15, 2010
Messages
826
Office Version
  1. 365
Platform
  1. Windows
Hi,
I’m having a brain fart !!!
I can’t get the required results in X5
If W5 has “helen” or “michelle”, I want to copy what is in C5 (a number)
If W5 is blank or has a different name, I what X5 to be blank
If C5 is blank, I want X5 to be blank.
Excel Formula:
=IF(OR(W5="michelle",+C5),IF(OR(W5="helen",+C5),""))
This returns a blank cell no mater what is in W5, even if it is blank
It also returns “FALSE” if C5 is blank or 0.00
C5 is not dependent on any cell and does not have a formula in it



mike
 

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.
How about:
=IF(OR(W5="michelle",W5="helen"),C5,"")
 
Upvote 0
Solution
thanks BadgerRoad
I'm always making it more involved than it has to be !!!

mike
 
Upvote 0
=OR(W5={"michelle","helen"})*C5 and set sheet to not show 0

or


=LET(v,OR(W5={"michelle","helen"})*C5,IF(OR(C5="",v=0),"",v))
 
Upvote 0

Forum statistics

Threads
1,224,818
Messages
6,181,152
Members
453,021
Latest member
Justyna P

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