IF OR Statement

Patchcord

Board Regular
Joined
Sep 30, 2003
Messages
73
I'm looking to write a formula to satisfy two possible states:

=IF(OR(ISTEXT(C9,D9))

I need the formula to report a TRUE condition if text is present in either C9 or D9, but I keep getting an error. Does anyone have any thoughts?
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Patchcord said:
I'm looking to write a formula to satisfy two possible states:

=IF(OR(ISTEXT(C9,D9))

I need the formula to report a TRUE condition if text is present in either C9 or D9, but I keep getting an error. Does anyone have any thoughts?

Either:

=OR(ISTEXT(C9),ISTEXT(D9))

Or:

=COUNTIF(C9:D9,"?*") > 1

The latter would ignore "".
 
Upvote 0
Or:

=COUNTIF(C9:D9,"?*") > 1

The latter would ignore "".
This gives FALSE for me with "" in C9 and "text" in D9 - see B9 below.

Shouldn't it be
=COUNTIF(C9:D9,"?*") > 0 - see B10 below?
Mr Excel.xls
ABCDE
8
9FALSE text
10TRUE
11
Check for Text
 
Upvote 0
Peter_SSs said:
Or:

=COUNTIF(C9:D9,"?*") > 1

The latter would ignore "".
This gives FALSE for me with "" in C9 and "text" in D9 - see B9 below.
...

Yes, it should: either >=1 or just >0, but I don't see the need for an exhibit to point that out. :LOL:
 
Upvote 0

Forum statistics

Threads
1,214,644
Messages
6,120,709
Members
448,983
Latest member
Joaquim_Baptista

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