Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
1. Assuming Age is in L2 put this in AGE column row 2
=IF(L2<31,"0-30",IF(AND(L2=31,L2<=60),"31-60",IF(AND(L2=61,L2<=90),"61-90", IF(L291,"90","ERROR")))) This will put the correct range for any given age... (I corrected the boundary conditions, you may check them again) You do not need to have the four columns 2. If you already have data in the four columns say B-E then you can simple put in the AGE column row 2 B2&C2&D2&E2 since three cells are blank and one contains the correct value you will get the right result "Donnie" wrote: How would I put this together as a nested IF statement? It's evaluating 4 cells (which only 1 cell would contain data). 0-30 =IF(L2<30,"0-30","") 31-60 =IF(AND(L2=31,L2<=60),"31-60","") 61-90 =IF(AND(L2=61,L2<=90),"61-90","") 91 =IF(L291,"91","") I want the AGE column to contain the if statement. So it looks to find which field that contains the values and places it under the AGE column. Age 0-30 31-60 61-90 91 91 91 91 91 61-90 61-90 61-90 61-90 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Nested IF statement | Excel Worksheet Functions | |||
Nested if statement | Excel Worksheet Functions | |||
how to do a nested if statement | Excel Discussion (Misc queries) | |||
Nested if then else statement | Excel Worksheet Functions | |||
Nested If statement | Excel Worksheet Functions |