Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Logic function for between

How do I structure an IF statement if I want to find out if a number is
between two other numbers?

i.e is a cell reference 4 and <12

I have tride numerous combination and can't seem to get it to return the
correct result.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 25
Default Logic function for between

IF(AND(Cellx4,Cellx<12),"Is Between","Is Outside")

--
Regards
Rob
"pallen" wrote in message
...
How do I structure an IF statement if I want to find out if a number is
between two other numbers?

i.e is a cell reference 4 and <12

I have tride numerous combination and can't seem to get it to return the
correct result.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 762
Default Logic function for between

pallen -

For example, to check the contents of A1,

=IF(AND(A14,A1<12),"It is","It isn't")

- Mike Middleton
http://www.DecisionToolworks.com
Decision Analysis Add-ins for Excel


"pallen" wrote in message
...
How do I structure an IF statement if I want to find out if a number is
between two other numbers?

i.e is a cell reference 4 and <12

I have tride numerous combination and can't seem to get it to return the
correct result.



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Logic function for between

=IF(AND(A14,A1<12),.................)

--
Biff
Microsoft Excel MVP


"pallen" wrote in message
...
How do I structure an IF statement if I want to find out if a number is
between two other numbers?

i.e is a cell reference 4 and <12

I have tride numerous combination and can't seem to get it to return the
correct result.



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
Wording's Colour Change for Logic Function Air Lancer Excel Discussion (Misc queries) 2 January 23rd 06 11:52 AM
Can wildcards be used in the Logic Test of an Excel "IF" function? Monte Excel Worksheet Functions 3 August 15th 05 01:25 PM
Logic Function Help… thomasstyron Excel Discussion (Misc queries) 3 July 25th 05 10:40 PM
Wording's Colour Change for Logic Function Air Lancer Excel Discussion (Misc queries) 1 May 11th 05 03:56 PM
Excel Logic Function Dennis Excel Discussion (Misc queries) 3 December 28th 04 04:23 PM


All times are GMT +1. The time now is 12:39 PM.

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

About Us

"It's about Microsoft Excel"