ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   if functions with more than 7 ifs (ranges are possible?) (https://www.excelbanter.com/excel-worksheet-functions/26441-if-functions-more-than-7-ifs-ranges-possible.html)

irwinko

if functions with more than 7 ifs (ranges are possible?)
 
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

arno

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


Mangesh Yadav

=IF(AND(A1=1,A1<=2),0,IF(AND(A1=3,A1<=5),1,IF(AN D(A1=6,A1<=9),2,3)))


- Mangesh



"irwinko" wrote in message
...
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




Duke Carey

=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


"irwinko" wrote:

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



All times are GMT +1. The time now is 08:19 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com