Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Simplifying an If(OR(…)) statement

Is there a way to do the following without using if(OR(…, …, …, ….,
…)) for each of 100 cells? I have a column of 100 cells each
containing a number from 1 through 10. If the number 7 is greater
than any of the 100 cell’s I want it to say “yes”, otherwise “no”..

Example: if(or(7A1, 7A2, 7A3, …, 7A100), “yes”, “no”)


Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 834
Default Simplifying an If(OR(…)) statement

Try

=IF(COUNTIF(A1:A100,"<7"),"yes","no")

--

HTH

Bob

"xl@lf" wrote in message
...
Is there a way to do the following without using if(OR(…, …, …, ….,
…)) for each of 100 cells? I have a column of 100 cells each
containing a number from 1 through 10. If the number 7 is greater
than any of the 100 cell’s I want it to say “yes”, otherwise “no”.

Example: if(or(7A1, 7A2, 7A3, …, 7A100), “yes”, “no”)


Thanks


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Simplifying an If(OR(…)) statement

Thanks Bob, that’s thinking outside the box. Now I’d like to swap out
the 7 with a cell reference. Such that
=IF(COUNTIF(A1:A100,"<E5"),"yes","no") but that's not working.

Example: if(or(E5A1, E5A2, E5A3, …, E5A100), “yes”, “no”)
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default Simplifying an If(OR(€¦)) statement

if(7max(A1:A100),"yes","no") should do it

"xl@lf" wrote:

Is there a way to do the following without using if(OR(€¦, €¦, €¦, €¦.,
€¦)) for each of 100 cells? I have a column of 100 cells each
containing a number from 1 through 10. If the number 7 is greater
than any of the 100 cells I want it to say €œyes€, otherwise €œno€..

Example: if(or(7A1, 7A2, 7A3, €¦, 7A100), €œyes€, €œno€)


Thanks
.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Simplifying an If(OR(…)) statement


Just what I was looking for, another outside the box thinker. Swap
"7" with "E5" and it works great, Thanks!!!



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 834
Default Simplifying an If(OR(…)) statement

Try

=IF(COUNTIF(A1:A100,"<"&E5),"yes","no")

--

HTH

Bob

"xl@lf" wrote in message
...
Thanks Bob, that’s thinking outside the box. Now I’d like to swap out
the 7 with a cell reference. Such that
=IF(COUNTIF(A1:A100,"<E5"),"yes","no") but that's not working.

Example: if(or(E5A1, E5A2, E5A3, …, E5A100), “yes”, “no”)


  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default Simplifying an If(OR(€¦)) statement

No problem. Can you click my post as being helpful.

Zoltan

"xl@lf" wrote:


Just what I was looking for, another outside the box thinker. Swap
"7" with "E5" and it works great, Thanks!!!

.

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
Simplifying IF Statement Ray Excel Programming 3 October 13th 09 05:34 AM
Need help simplifying VBA code jlclyde Excel Discussion (Misc queries) 4 September 4th 08 04:21 PM
Simplifying VBA code Michael M Excel Worksheet Functions 8 January 24th 07 02:17 PM
Simplifying a formula MartinW Excel Worksheet Functions 3 June 19th 06 11:50 AM
Simplifying VBA code Steve[_71_] Excel Programming 7 November 2nd 04 07:44 PM


All times are GMT +1. The time now is 04:11 PM.

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"