Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
britgirl
 
Posts: n/a
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Pete
 
Posts: n/a
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
britgirl
 
Posts: n/a
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Nested IF with OR Function Trudy Excel Worksheet Functions 5 November 23rd 05 11:52 PM
Nested "If" Function Ms. P. Excel Worksheet Functions 8 August 19th 05 07:31 PM
Automatically up date time in a cell Mark Excel Discussion (Misc queries) 5 May 12th 05 12:26 AM
Countif Function -Nested Angi Excel Discussion (Misc queries) 7 May 4th 05 07:04 PM
HOW CAN I GET OFFICE 2003 EXCEL BASIC TO NEST FUNCTIONS LIKE EXCE. Robert AS Excel Worksheet Functions 4 December 2nd 04 10:49 AM


All times are GMT +1. The time now is 08:31 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"