ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Excel OR function (https://www.excelbanter.com/excel-worksheet-functions/56337-excel-function.html)

Bobs82

Excel OR function
 
I have trouble using an array as the argument in the OR function. I have
integer data in some of the locations in array (A1:T1). Unused locations are
blank. Ineed to know if any of the data in the array matches the integer
stored in,for example, C17. So far, everything I try leads to the #VALUE or
#NAME error message. What am I doing wrong?

Ron Coderre

Excel OR function
 
Would this work for you?:

=COUNTIF(A1:T1,C17)

***********
Regards,
Ron


"Bobs82" wrote:

I have trouble using an array as the argument in the OR function. I have
integer data in some of the locations in array (A1:T1). Unused locations are
blank. Ineed to know if any of the data in the array matches the integer
stored in,for example, C17. So far, everything I try leads to the #VALUE or
#NAME error message. What am I doing wrong?


Bob Phillips

Excel OR function
 
Are you Ctrl-Shift-Entering the formula?

Can you show the formula?

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Bobs82" wrote in message
...
I have trouble using an array as the argument in the OR function. I have
integer data in some of the locations in array (A1:T1). Unused locations

are
blank. Ineed to know if any of the data in the array matches the integer
stored in,for example, C17. So far, everything I try leads to the #VALUE

or
#NAME error message. What am I doing wrong?




bernard liengme

Excel OR function
 
I wonder who can tell Bobs82 what is wrong with his/her formula without
being told what it is!
Why do you need OR, would this work for you =COUNTIF(A1:T1,C17) or
=COUNTIF(A1:T1,C17)0
best wishes
Bernard


"Bobs82" wrote in message
...
I have trouble using an array as the argument in the OR function. I have
integer data in some of the locations in array (A1:T1). Unused locations
are
blank. Ineed to know if any of the data in the array matches the integer
stored in,for example, C17. So far, everything I try leads to the #VALUE
or
#NAME error message. What am I doing wrong?





All times are GMT +1. The time now is 09:32 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com