Hi,
I was wondering if it would be possible for somebody to help me in either recreating a shorter (or working) equation that satisfies 6 conditions, let me explain.
There are 3 important cells:
1) an input cell – the user will enter either “a”, “b”, “c”, “d”, “e” or “f” (we will call x)
2) a variable cell – which will be a number previously generated (we will call z)
3) the output cell (to be calculated – we will call y)
Conditions:
1) If x = “a” then y = z
2) If (x = “b” AND z >= 2) then y = z else y = 2
3) If (x = “c” AND z >= 3) then y = 1.5z else y = 3
4) If (x = “d” AND z >= 4) then y = 2z else y = 4
5) If (x = “e” AND z >= 6) then y = 2z+4 else y = 6
6) If (x = “f” AND z >= 12) then y = 3z else y = 12
Here is one of the variations of equations to which I have used. It obviously does not work as there are more than 7 IF statements but it is the closest to what I think should work.
=IF(R6="a",I6,
IF(AND(R6="b",I6>=2),I6,
IF(AND(R6="b",I6<2),2,
IF(AND(R6="c",I6>=3),I6*1.5,
IF(AND(R6="c",I6<3),3,
IF(AND(R6="d",I6>=4),I6*2,
IF(AND(R6="d",I6<4),4,
IF(AND(R6="e",I6>=6),I6*2+4,
IF(AND(R6="e",I6<6),6,
IF(AND(R6="f",I6>=12),I6*3,
IF(AND(R6="f",I6<12),12,"ENTER LETTER")))))))))))
Those around me have suggested using "VLOOKUP" or "CHOOSE" funcitons but I cannot create a working formula.
It has been a while and I have still not been able to create a working function. I hope my explanation is clear, any help would be appreciated.
Thanks
(I have attached a sample worksheet)
Bookmarks