Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Need help with nested function...please
Hi there, I am trying to make a formula to calculate different rates dependent on the initial cell value... i.e. if c2 = 40.1 and <= 45, then (c2*1) and if c2= 45.1 and <= 50, then (c2*1.5) and if c2 = 50.1 then (c2*2) and if c2 < 40 then 0 I have tried various combinations of parentheses, operands et al, but don't seem to be able to find the right mix... Can anyone help please... -- britgirl ------------------------------------------------------------------------ britgirl's Profile: http://www.excelforum.com/member.php...o&userid=29957 View this thread: http://www.excelforum.com/showthread...hreadid=496562 |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Need help with nested function...please
Try this:
=IF(c2<=40,0,IF(c2<=45,c2,IF(c2<=50,c2*1.5,c2*2))) Pete_UK |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Need help with nested function...please
One way
=C2*VLOOKUP(C2,{0,0;40.1,1;45.1,1.5;50.1,2},2) -- Regards, Peo Sjoblom (No private emails please) "britgirl" wrote in message ... Hi there, I am trying to make a formula to calculate different rates dependent on the initial cell value... i.e. if c2 = 40.1 and <= 45, then (c2*1) and if c2= 45.1 and <= 50, then (c2*1.5) and if c2 = 50.1 then (c2*2) and if c2 < 40 then 0 I have tried various combinations of parentheses, operands et al, but don't seem to be able to find the right mix... Can anyone help please... -- britgirl ------------------------------------------------------------------------ britgirl's Profile: http://www.excelforum.com/member.php...o&userid=29957 View this thread: http://www.excelforum.com/showthread...hreadid=496562 |
#4
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Need help with nested function...please
...Pete, your formula worked like a champ. I was trying to make it more difficult than it needed to be. Peo, I typed in your formula: =C2*VLOOKUP(C2,{0,0;40.1,1;45.1,1.5;50.1,2},2) ...but keep getting an error message at the left curly bracket. -- britgirl ------------------------------------------------------------------------ britgirl's Profile: http://www.excelforum.com/member.php...o&userid=29957 View this thread: http://www.excelforum.com/showthread...hreadid=496562 |
#5
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Need help with nested function...please
Don't know why you get an error, it returns the exact same result as Pete's
unless C2 is negative however it is 4 character less to type <bg -- Regards, Peo Sjoblom (No private emails please) "britgirl" wrote in message ... ..Pete, your formula worked like a champ. I was trying to make it more difficult than it needed to be. Peo, I typed in your formula: =C2*VLOOKUP(C2,{0,0;40.1,1;45.1,1.5;50.1,2},2) ..but keep getting an error message at the left curly bracket. -- britgirl ------------------------------------------------------------------------ britgirl's Profile: http://www.excelforum.com/member.php...o&userid=29957 View this thread: http://www.excelforum.com/showthread...hreadid=496562 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Nested IF with OR Function | Excel Worksheet Functions | |||
Nested "If" Function | Excel Worksheet Functions | |||
Automatically up date time in a cell | Excel Discussion (Misc queries) | |||
Countif Function -Nested | Excel Discussion (Misc queries) | |||
HOW CAN I GET OFFICE 2003 EXCEL BASIC TO NEST FUNCTIONS LIKE EXCE. | Excel Worksheet Functions |