Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
carlito_1985
 
Posts: n/a
Default IF function Between


Hey everyone, I'm trying to write a formula to calculate what the cost
would be with different scales of percentage.

What im working with is, in cell g12 I input cost of construction eg
1,550,000.

Now the fees are as follows.

Upto 50,000 $100
50,000 - 500,000 .23% of cost (550,000*.23%)
500,000 - 2,500,000 $1,150 + .18% of cost after $500,000

(1,150+((1,550,000-500,000)*.18%))
2,500,000 - 5,000,000 $4750 + .15% of cost after 2,500,000
5,000,000 - 21,500,000 $8,500 + .1% of cost after 5,000,000

21,500,000+ $25,000

this is the formula I used, but it didn't seem to work properly.


=IF(G121<50000,100,IF(G1250000<500000,(G12*0.23)/100,IF(G12500000<25000000,(1150+(G12-500000)*(0.18/100)),IF(G122500000<5000000,(4750+(G12-2500000)*(0.15/100)),IF(G125000000<21500000,(8500+(G12-5000000)*(0.1/100)),IF(G1225000000,25000))))))

I'd also like it to round to the closest .05 (round 3040.14 to 3040.15)
etc

and the cell comes up as false, when it should technically come up as
3040

any idea what Im doing wrong??

Thanksyou all


--
carlito_1985
------------------------------------------------------------------------
carlito_1985's Profile: http://www.excelforum.com/member.php...o&userid=21390
View this thread: http://www.excelforum.com/showthread...hreadid=374116

  #2   Report Post  
mangesh_yadav
 
Posts: n/a
Default


Use:

=IF(G12<=50000,100,IF(G12<=500000,0.23%*G12,IF(G12 <=2500000,1150+0.18%*(G12-500000),IF(G12<=5000000,4750+0.15%*(G12-2500000),IF(G12<=21500000,8500+0.1%*(G12-5000000),25000)))))


for the rounding, you can use:
=MROUND(3040.14,0.05)
for this function, you require the Analysis ToolPak addin. This can be
done by going to Tools Addins. Check the Analysis ToolPak checxkbox.


Mangesh


--
mangesh_yadav
------------------------------------------------------------------------
mangesh_yadav's Profile: http://www.excelforum.com/member.php...o&userid=10470
View this thread: http://www.excelforum.com/showthread...hreadid=374116

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
Date & Time mully New Users to Excel 4 May 23rd 05 11:56 AM
Automatically up date time in a cell Mark Excel Discussion (Misc queries) 5 May 12th 05 12:26 AM
clock Wildman Excel Worksheet Functions 2 April 26th 05 10:31 AM
Need a ISWorkday Function -- Any Ideas Mark Excel Worksheet Functions 5 March 29th 05 01:58 AM
Conversion SVC Excel Worksheet Functions 9 February 28th 05 02:29 PM


All times are GMT +1. The time now is 05:30 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"