Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
velopoav
 
Posts: n/a
Default How can i make this work within an IF statement: (41<=Cell<=46)

Everytime i type that condition into an if statement it doesnt calculate the
number correctly... what am i doing wrong?
  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

One way:
=if(and(a1=41,a1<=46),"it's between","outside")



velopoav wrote:

Everytime i type that condition into an if statement it doesnt calculate the
number correctly... what am i doing wrong?


--

Dave Peterson
  #3   Report Post  
Niek Otten
 
Posts: n/a
Default

You don't tell us what formula you used.
But probably you mean something like

=IF(AND(A1=41,A1<=46),"yes","no")

--

Kind Regards,

Niek Otten

Microsoft MVP - Excel

"velopoav" wrote in message
...
Everytime i type that condition into an if statement it doesnt calculate
the
number correctly... what am i doing wrong?



  #4   Report Post  
John Mansfield
 
Posts: n/a
Default

You can also use boolean conditions like:

=(A11) * 1 - checks one condition

=(A12) * (A1<8) * 1 - both conditions must be true

However, this type of conditioning does not work with text.

A more detailed explanation can be found he

http://www.pdbook.com/index.php/exce...itch_formulas/

----
Regards,
John Mansfield
http://www.pdbook.com



"velopoav" wrote:

Everytime i type that condition into an if statement it doesnt calculate the
number correctly... what am i doing wrong?

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
Make Exec work properly (error messages on start and exit) TorG 8-(( Excel Discussion (Misc queries) 9 April 18th 06 01:10 PM
Spin button in a work sheet - how do I make it work? [email protected] Excel Worksheet Functions 1 April 7th 05 08:43 PM
how to make this work if sum=5+n2 then sum becomes the value of s. michaell Excel Discussion (Misc queries) 1 January 26th 05 10:24 PM
Array If statement doesn't work Suzanne Excel Worksheet Functions 5 December 3rd 04 09:19 AM
How do I make this formula work =if(a1=(b10:b20),"good","bad"). AK Excel Worksheet Functions 2 December 2nd 04 01:13 AM


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