if functions with more than 7 ifs (ranges are possible?)

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

ok in one cell that i have there could be a possibility of 1-14 and i want
for example if i enter 1 or 2 in another cell it will come up 0, then for 3
or 4 or 5 it to come up 1, then for 6 or 7 or 8 or 9 it to come up 2. Is this
at all possible because i can't seem to get it to work
 
hi irwinko,
ok in one cell that i have there could be a possibility of 1-14 and i
want for example if i enter 1 or 2 in another cell it will come up 0,
then for 3 or 4 or 5 it to come up 1, then for 6 or 7 or 8 or 9 it to
come up 2. Is this at all possible because i can't seem to get it to
work

this is by design. use vlookup instead. see help for details.

arno
 
=IF(AND(A1>=1,A1<=2),0,IF(AND(A1>=3,A1<=5),1,IF(AND(A1>=6,A1<=9),2,3)))


- Mangesh
 
=CHOOSE(A1,0,0,1,1,1,2,2,2,3,3,3,4,4,4)

where A1 is the cell with the # 1-14
 

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

Back
Top