OR() Function

mmartin

New Member
Joined
Apr 10, 2002
Messages
10
Hi,
can the OR() Function be used over cell ranges?

I'm trying the following :

=OR((Z3:BZ3="F"))

. . . and the result is :

#VALUE!

Cheers
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Yes, but you must press Ctrl+Shift Enter, rather than just Enter. If correctly entered Excel will surround the array formula with curly braces {}.

An alternative normal formula:

=COUNTIF(Z3:BZ3,"F")>0
 
Upvote 0
Are you trying to count the number of cells in the range that equal F, or are you testing that ANY of the cells in the range equal F?

To count the no. of cells which equal F: =COUNTIF(Z3:BZ3,"F")
To count the no. of cells which CONTAIN F: =COUNTIF(Z3:BZ3,"*F*")
To test whether ANY of the cells equal F:=COUNTIF(Z3:BZ3,"F")>0 (returns TRUE/FALSE)
 
Upvote 0
For What Purpose ?

Exactly as you wrote it, no it can't be used that way..

Are you trying to See if F exists in the range Z3:BZ3 ?

=COUNTIF(Z3:BZ3,"F")>0

Will return TRUE if F exists anywhere in the range
remove the >0 to get the count of HOW MANY Fs are in the range...

Hope this helps..
 
Upvote 0
Hi All,
apologies - I should have been clearer - I was indeed trying to test for the presence of F in the range.

Your suggestions worked perfectly. Many Thanks
Cheers!
 
Upvote 0

Forum statistics

Threads
1,214,575
Messages
6,120,344
Members
448,956
Latest member
Adamsxl

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