Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default IF and OR Functions

Please tell me what's wrong with this formula?

=IF(OR(A1:A88=14,41,38,20,46,18,22,24,12,11,59,48) ,"YES","NO")

I'm trying to create a function that will look for numbers "14, 41, 38,
20,46, 18, 22, 24, 12, 11, 59, or 48" within the column range A1:A88. If
these numbers appear in the column range, then "Yes", otherwise "No."

Thank you for your help. (P.S. Using Excel version 2003)
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default IF and OR Functions

=IF(SUM(COUNTIF(A1:A88,{14,41,38,20,46,18,22,24,12 ,11,59,48}))0,"YES","NO")

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Trea" wrote in message
...
Please tell me what's wrong with this formula?

=IF(OR(A1:A88=14,41,38,20,46,18,22,24,12,11,59,48) ,"YES","NO")

I'm trying to create a function that will look for numbers "14, 41, 38,
20,46, 18, 22, 24, 12, 11, 59, or 48" within the column range A1:A88. If
these numbers appear in the column range, then "Yes", otherwise "No."

Thank you for your help. (P.S. Using Excel version 2003)



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default IF and OR Functions

Thank you Bob - You are the Best!!

"Bob Phillips" wrote:

=IF(SUM(COUNTIF(A1:A88,{14,41,38,20,46,18,22,24,12 ,11,59,48}))0,"YES","NO")

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Trea" wrote in message
...
Please tell me what's wrong with this formula?

=IF(OR(A1:A88=14,41,38,20,46,18,22,24,12,11,59,48) ,"YES","NO")

I'm trying to create a function that will look for numbers "14, 41, 38,
20,46, 18, 22, 24, 12, 11, 59, or 48" within the column range A1:A88. If
these numbers appear in the column range, then "Yes", otherwise "No."

Thank you for your help. (P.S. Using Excel version 2003)




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to convert cell formula functions to code functions Adnan Excel Discussion (Misc queries) 1 October 1st 08 08:30 PM
formula/functions for average and if functions Petu71 Excel Worksheet Functions 2 August 5th 07 08:25 PM
efficiency: database functions vs. math functions vs. array formula nickname Excel Discussion (Misc queries) 2 July 14th 06 04:26 AM
Conversion from Spreadsheet Toolkit functions (ESSV....) to EssBase API functions sujay Excel Programming 0 June 5th 06 10:13 AM
excel functions and User defined functions Kanan Excel Programming 4 May 20th 04 11:21 PM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"