Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
So, are you saying that in your example "a", "b", "c" etc represent
values that you want to return rather than those letters literally? One way of doing it is to put those values in a column somewhere, eg in X1:X16, in the order shown, then you could use this in the cell you refer to as E: =INDEX(X$1:X$16,(M-1)*4+C) where M and C will have to be changed to the cell references that they represent. You might like to build in some error-checking: =IF(OR(M="",C=""),"",INDEX(X$1:X$16,(M-1)*4+C)) Hope this helps. Pete On Aug 28, 6:34*pm, Ned Harrison <Ned wrote: Hello - I am trying to add a function to a spreadsheet that means when 2 variables are completed (currency & month - 4 options on each) it returns a predetermined value. *I thought I'd nearly got there (with a large amount of help) by using a combination of If & AND functions, but it keeps giving an error message. *Can anyone help? In case, I'm not being clear, I need a formula that will deal with this: If M =1, C=1, then E = a If M =1, C=2, then E = b If M =1, C=3, then E = c If M =1, C=4, then E = d If M =2, C=1, then E = e If M =2, C=2, then E = f If M =2, C=3, then E = g If M =2, C=4, then E = h If M =3, C=1, then E = i If M =3, C=2, then E = j If M =3, C=3, then E = k If M =3, C=4, then E = l If M =4, C=1, then E = m If M =4, C=2, then E = n If M =4, C=3, then E = o If M =4, C=4, then E = p Where M and C are selected by the user from 4 options, and E is the result given from values that I have provided. *Any ideas? Many thanks N |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Automatically fill following cells depending on one cell. | Excel Discussion (Misc queries) | |||
automatically fill in blank cells?? | Excel Worksheet Functions | |||
Help using the 'If' function to automatically fill in other cells | Excel Worksheet Functions | |||
automatically fill in a range of cells | Excel Discussion (Misc queries) | |||
need to fill cells automatically | Excel Worksheet Functions |