Formula not working

C

Connie Martin

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
 
E

Elkar

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
 
B

Bob Phillips

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)
 
C

Connie Martin

Thank you. That works, too! Connie

Bob Phillips said:
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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top