Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Connie Martin
 
Posts: n/a
Default Formula not working

This formula doesn't work:
=IF(I43=0-10,"0-10",IF(I43=11-20,"11-20",IF(I43=21-35,"21-35",IF(I43=36-49,"36-49","50+"))))

In I43 the number is 41, therefore in I44, where I have this formula, it
should be giving 36-49, not 50+. It should only give 50+ when it doesn't fit
into any of the other IF statements.

What have I done wrong? Connie
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Elkar
 
Posts: n/a
Default Formula not working

Try this instead:

=IF(I43<=10,"0-10",IF(I43<=20,"11-20",IF(I43<=35,"21-35",IF(I43<=49,"36-49","50+"))))

In your formula, 0-10 is treated as Zero minus Ten, not Zero through Ten.

HTH,
Elkar


"Connie Martin" wrote:

This formula doesn't work:
=IF(I43=0-10,"0-10",IF(I43=11-20,"11-20",IF(I43=21-35,"21-35",IF(I43=36-49,"36-49","50+"))))

In I43 the number is 41, therefore in I44, where I have this formula, it
should be giving 36-49, not 50+. It should only give 50+ when it doesn't fit
into any of the other IF statements.

What have I done wrong? Connie

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default Formula not working

Try this version

=LOOKUP(J43,{0,11,21,36,50},{"0-10","11-20","21-35","36-49","50+"})

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Connie Martin" wrote in message
...
This formula doesn't work:

=IF(I43=0-10,"0-10",IF(I43=11-20,"11-20",IF(I43=21-35,"21-35",IF(I43=36-49,"
36-49","50+"))))

In I43 the number is 41, therefore in I44, where I have this formula, it
should be giving 36-49, not 50+. It should only give 50+ when it doesn't

fit
into any of the other IF statements.

What have I done wrong? Connie



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Connie Martin
 
Posts: n/a
Default Formula not working

Thank you. That works! I guess I think more mathematically in Excel!!
Connie

"Elkar" wrote:

Try this instead:

=IF(I43<=10,"0-10",IF(I43<=20,"11-20",IF(I43<=35,"21-35",IF(I43<=49,"36-49","50+"))))

In your formula, 0-10 is treated as Zero minus Ten, not Zero through Ten.

HTH,
Elkar


"Connie Martin" wrote:

This formula doesn't work:
=IF(I43=0-10,"0-10",IF(I43=11-20,"11-20",IF(I43=21-35,"21-35",IF(I43=36-49,"36-49","50+"))))

In I43 the number is 41, therefore in I44, where I have this formula, it
should be giving 36-49, not 50+. It should only give 50+ when it doesn't fit
into any of the other IF statements.

What have I done wrong? Connie

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Connie Martin
 
Posts: n/a
Default Formula not working

Thank you. That works, too! Connie

"Bob Phillips" wrote:

Try this version

=LOOKUP(J43,{0,11,21,36,50},{"0-10","11-20","21-35","36-49","50+"})

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Connie Martin" wrote in message
...
This formula doesn't work:

=IF(I43=0-10,"0-10",IF(I43=11-20,"11-20",IF(I43=21-35,"21-35",IF(I43=36-49,"
36-49","50+"))))

In I43 the number is 41, therefore in I44, where I have this formula, it
should be giving 36-49, not 50+. It should only give 50+ when it doesn't

fit
into any of the other IF statements.

What have I done wrong? Connie




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
Formula to find the working days difference between to dates? Mudgeman Excel Discussion (Misc queries) 2 May 15th 06 04:26 AM
Dynamic Range with unused formula messing up x axis on dynamic graph [email protected] Charts and Charting in Excel 2 February 2nd 06 08:02 PM
Array Formula Not Working with Range with Formulas [email protected] Excel Discussion (Misc queries) 4 February 1st 06 02:01 PM
VLOOKUP & Dates: Why is this Formula working? Ali Excel Worksheet Functions 1 January 18th 06 01:37 PM
Formula entered not working Thrava Excel Discussion (Misc queries) 5 March 6th 05 09:18 PM


All times are GMT +1. The time now is 09:58 AM.

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"