#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 275
Default If statement

In an if statement how do you code where the variable is between 2 numbers, eg
(minus) -10,000 and 10,000.

Much appreciated

Anthony
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default If statement

I don't understand your question.

Do you mean =IF(AND(A2-10000,A2<10000),"A2 is between the limits","A2 is
not between the limits") ?
If by "between" you want the limits to be inclusive, change to = and < to
<=
--
David Biddulph

Anthony wrote:
In an if statement how do you code where the variable is between 2
numbers, eg (minus) -10,000 and 10,000.

Much appreciated

Anthony



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
Reconcile Bank statement & Credit card statement & accounting data Bklynhyc Excel Worksheet Functions 0 October 7th 09 09:07 PM
Embedding an OR statement in an IF statement efficiently Chatnoir11 Excel Discussion (Misc queries) 4 February 2nd 09 08:12 PM
appending and IF statement to an existing IF statement spence Excel Worksheet Functions 1 February 28th 06 11:00 PM
If statement and Isblank statement Rodney C. Excel Worksheet Functions 0 January 18th 05 08:39 PM
Help please, IF statement/SUMIF statement Brad_A Excel Worksheet Functions 23 January 11th 05 02:24 PM


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