OR statement

G

Guest

Guest
Question:
Can I put an OR statement inside an IF formula?
if yes how would you use that?
Thanks in advance
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
On 2002-03-11 11:21, Anonymous wrote:
Question:
Can I put an OR statement inside an IF formula?
if yes how would you use that?
Thanks in advance

Example:

=IF(OR(A1="X",A1="Y"),A1*B1,0)

which says: if A1 is either equal to "X" or equal to "Y", give the result of A1*B1, otherwise 0 in the cell where this formula is.
 
Upvote 0
I am using the Conditional Format
After selecting columnB,I typed in
=OR(c1="",c1="Test")
eg. change text in columnB to white if c1="" or c1=Test
However, it doesn't work
Should I add more statment in the formula
Thanks guys
 
Upvote 0
On 2002-03-11 11:36, Anonymous wrote:
I am using the Conditional Format
After selecting columnB,I typed in
=OR(c1="",c1="Test")
eg. change text in columnB to white if c1="" or c1=Test
However, it doesn't work
Should I add more statment in the formula
Thanks guys

If you mean to test for an empty cell try this instead...

=OR(ISBLANK(C1),C1="Test")
 
Upvote 0

Forum statistics

Threads
1,213,543
Messages
6,114,245
Members
448,555
Latest member
RobertJones1986

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