#1   Report Post  
Jakefoot
 
Posts: n/a
Default <,> formula

I am trying to create a formula that says yes when a number is greater than
23 but less than 24 and says no when a number is less than 23 or greater than
24.
I can only figure out how to do one or the other but not both. Thank you.
  #2   Report Post  
arno
 
Posts: n/a
Default

Hi Jakefoot,
I am trying to create a formula that says yes when a number is
greater than 23 but less than 24 and says no when a number is less
than 23 or greater than
24.
I can only figure out how to do one or the other but not both. Thank
you.


=IF(AND(A1<24,A123),"yes","oh no")

arno

  #4   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

With those conditions then 23 or 24 wouldn't return anything?
Assume that you want greater or equal to 23 and less than or equal
24 as the first condition

=IF(AND(A1=23,A1<=24),"Yes","No")

--
Regards,

Peo Sjoblom


"Jakefoot" wrote in message
...
I am trying to create a formula that says yes when a number is greater than
23 but less than 24 and says no when a number is less than 23 or greater
than
24.
I can only figure out how to do one or the other but not both. Thank you.


  #5   Report Post  
bj
 
Posts: n/a
Default

try =if(and(number=23,number<24),"yes","no")
You might have to play with the greater than and less than criteria to get
what you want

"Jakefoot" wrote:

I am trying to create a formula that says yes when a number is greater than
23 but less than 24 and says no when a number is less than 23 or greater than
24.
I can only figure out how to do one or the other but not both. Thank you.



  #6   Report Post  
Harlan Grove
 
Posts: n/a
Default

Peo Sjoblom wrote...
With those conditions then 23 or 24 wouldn't return anything?
Assume that you want greater or equal to 23 and less than or equal
24 as the first condition

=IF(AND(A1=23,A1<=24),"Yes","No")

....

Variation on the theme.

=, <=: =IF(ABS(x-23.5)<=0.5,"y","n")


, <: =IF(ABS(x-23.5)<0.5,"y","n")


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
put formula results into a different cell if it is empty PutFormula Excel Worksheet Functions 2 February 11th 05 03:31 AM
Dynamic (?) formula Thore Excel Worksheet Functions 2 February 9th 05 05:25 PM
Polynimial trandline formula CLR Charts and Charting in Excel 9 February 7th 05 07:31 PM
how do i write a formula and keep in in formula form, so it DOESN. norcalchick2207 Excel Discussion (Misc queries) 2 February 4th 05 08:38 PM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM


All times are GMT +1. The time now is 06:27 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"