Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Try in say, C2, array-entered with CSE*:
=IF(OR(A2="",B2=""),"",INDEX({"0%";"a-b%";"c-d%";"0%";"e-f%";"g-h%";"0%";"i-j%";"k-l%"},MATCH(1,({1;1;1;2;2;2;3;3;3}=A2)*({"N";"M";"E ";"N";"M";"E";"N";"M";"E"}=B2),0))) *press CTRL+SHIFT+ENTER to confim the formula (instead of just pressing ENTER) -- Max Singapore http://savefile.com/projects/236895 xdemechanik --- "Lari" wrote: I need to write an embedded IF statement for a compensation report that would do the following: Cell A2 will be a value of 1, 2 or 3 Cell B2 will be a value of N, M or E and If cell A2 = 1 and cell B2 = N, enter text '0%' If cell A2 = 1 and cell B2 = M, enter text 'a-b%' If cell A2 = 1 and cell B2 = E, enter text 'c-d%' If cell A2 = 2 and cell B2 = N, enter text '0%' If cell A2 = 2 and cell B2 = M, enter text 'e-f%' If cell A2 = 2 and cell B2 = E, enter text 'g-h%' If cell A2 = 3 and cell B2 = N, enter text '0%' If cell A2 = 3 and cell B2 = M, enter text 'i-j%' If cell A2 = 3 and cell B2 = E, enter text 'k-l%' Your help would be much appreciated! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
list embedded in an if statement | Excel Discussion (Misc queries) | |||
reducing the number of times an IF statement needs to be calculated in embedded IF statements | Excel Discussion (Misc queries) | |||
If statement | Excel Discussion (Misc queries) | |||
Do I need a sumif or sum of a vlookup formula? | Excel Worksheet Functions | |||
Displaying cell references next to embedded cells in Word 2000 | New Users to Excel |