Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / March 2006

Tip: Looking for answers? Try searching our database.

Calc formula

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ron - 29 Mar 2006 11:16 GMT
Hi how would I write a formula to calculate the following

cell b2 contains 0.02169 cell B3 contains 0.01590 cell D2 contains 5860 and
column G contains numbers from 1 to 20845

Units Rate 1  0.02169 (first 5,860 units) 5860 £127.10
Units Rate 2  0.01590 20845 14985                £238.26
                                                                    Total
£365.36

It is to calculate my gas bill where the first 5860 units cost .02169 and
the rest cost .01590
I can work it out manually but how do I write a formula that will calculate
it in excell?

Thanks Ron
Andy - 29 Mar 2006 12:03 GMT
Hi

I've put your total usage (20845) into D3 and come up with this:
=(MAX(D3-D2,0)*B3)+IF(D3>D2,D2*B2,D3*B2)

It's not pretty but it does the job!
Andy.

> Hi how would I write a formula to calculate the following
>
[quoted text clipped - 12 lines]
>
> Thanks Ron
Bob Phillips - 29 Mar 2006 12:35 GMT
=ROUND(D2*B2+MAX(0,D3-D2)*B3,2)

Signature

HTH

Bob Phillips

(remove nothere from email address if mailing direct)

> Hi how would I write a formula to calculate the following
>
[quoted text clipped - 12 lines]
>
> Thanks Ron
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.