Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default range in an IF statement

I need the IF statement to look for numbers 1100 through 1199, then put 11 in
another cell. How do I get the IF statement to recognize the range 1100
through 1199? Meaning, any number between 1100 and 1199 should be given the
number 11?
--
Dorothy J
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 772
Default range in an IF statement

Is this what you were trying to do?
=IF(AND(A1=1100,A1<1200),11,"")
--
-John Northwest11
Please rate when your question is answered to help us and others know what
is helpful.


"Dorothy J" wrote:

I need the IF statement to look for numbers 1100 through 1199, then put 11 in
another cell. How do I get the IF statement to recognize the range 1100
through 1199? Meaning, any number between 1100 and 1199 should be given the
number 11?
--
Dorothy J

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default range in an IF statement

I put that in but it made no difference, I used my own figures, correct?
--
Dorothy J


"Don Guillett" wrote:

would this work?
=left(a2,2)

--
Don Guillett
SalesAid Software

"Dorothy J" wrote in message
...
I need the IF statement to look for numbers 1100 through 1199, then put 11
in
another cell. How do I get the IF statement to recognize the range 1100
through 1199? Meaning, any number between 1100 and 1199 should be given
the
number 11?
--
Dorothy J




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,393
Default range in an IF statement

=IF(AND(A1=1100,A1<=1199),11,"")
or
=IF(A1/100=11,11,"") or if the number is not an integer
=IF(INT(A1/100)=11,11,"")
or if you can live with zero when the value is not in the range
=11*(INT(A1/100)=11)
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Dorothy J" wrote in message
...
I need the IF statement to look for numbers 1100 through 1199, then put 11
in
another cell. How do I get the IF statement to recognize the range 1100
through 1199? Meaning, any number between 1100 and 1199 should be given
the
number 11?
--
Dorothy J





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default range in an IF statement

sort of, but you gave me an idea....
--
Dorothy J


"John Bundy" wrote:

Is this what you were trying to do?
=IF(AND(A1=1100,A1<1200),11,"")
--
-John Northwest11
Please rate when your question is answered to help us and others know what
is helpful.


"Dorothy J" wrote:

I need the IF statement to look for numbers 1100 through 1199, then put 11 in
another cell. How do I get the IF statement to recognize the range 1100
through 1199? Meaning, any number between 1100 and 1199 should be given the
number 11?
--
Dorothy J

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default range in an IF statement

Your answer made it work, putting in the sign worked. I didn't need the
AND though...I think!!

THANKS!!!!

--
Dorothy J


"John Bundy" wrote:

Is this what you were trying to do?
=IF(AND(A1=1100,A1<1200),11,"")
--
-John Northwest11
Please rate when your question is answered to help us and others know what
is helpful.


"Dorothy J" wrote:

I need the IF statement to look for numbers 1100 through 1199, then put 11 in
another cell. How do I get the IF statement to recognize the range 1100
through 1199? Meaning, any number between 1100 and 1199 should be given the
number 11?
--
Dorothy J

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 96
Default range in an IF statement

maybe try this

=11*--and(a1=1100,a1<1200)
--
*****
birds of the same feather flock together..



"Dorothy J" wrote:

I need the IF statement to look for numbers 1100 through 1199, then put 11 in
another cell. How do I get the IF statement to recognize the range 1100
through 1199? Meaning, any number between 1100 and 1199 should be given the
number 11?
--
Dorothy J

  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default range in an IF statement

THANKS!
--
Dorothy J


"dribler2" wrote:

maybe try this

=11*--and(a1=1100,a1<1200)
--
*****
birds of the same feather flock together..



"Dorothy J" wrote:

I need the IF statement to look for numbers 1100 through 1199, then put 11 in
another cell. How do I get the IF statement to recognize the range 1100
through 1199? Meaning, any number between 1100 and 1199 should be given the
number 11?
--
Dorothy J

  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 96
Default range in an IF statement

your welcome
--
*****
birds of the same feather flock together..



"Dorothy J" wrote:

THANKS!
--
Dorothy J


"dribler2" wrote:

maybe try this

=11*--and(a1=1100,a1<1200)
--
*****
birds of the same feather flock together..



"Dorothy J" wrote:

I need the IF statement to look for numbers 1100 through 1199, then put 11 in
another cell. How do I get the IF statement to recognize the range 1100
through 1199? Meaning, any number between 1100 and 1199 should be given the
number 11?
--
Dorothy J

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
IF statement (non nested) that compares cell value against range r2d3 Excel Worksheet Functions 4 August 10th 06 01:11 PM
Duplicate Range Names by worksheet FlaAl Excel Discussion (Misc queries) 0 May 24th 06 05:14 PM
Using a worksheet name from a range RPH Excel Worksheet Functions 3 January 27th 06 08:40 PM
How do I use a range of numbers in an if statement? pbeattie Excel Worksheet Functions 2 October 10th 05 10:36 PM
If statement where the logical test is a range that equals a word Steve o Excel Worksheet Functions 8 June 27th 05 02:43 PM


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