Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
Ron
 
Posts: n/a
Default Calc formula

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


  #2   Report Post  
Posted to microsoft.public.excel.newusers
 
Posts: n/a
Default Calc formula

Hi

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

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

"Ron" wrote in message
...
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




  #3   Report Post  
Posted to microsoft.public.excel.newusers
Bob Phillips
 
Posts: n/a
Default Calc formula

=ROUND(D2*B2+MAX(0,D3-D2)*B3,2)

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Ron" wrote in message
...
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




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
Is it possible? DakotaNJ Excel Worksheet Functions 25 September 18th 06 09:30 PM
Round amount to nearest $10 after other formula calc. in same cell debtors Excel Worksheet Functions 2 March 24th 06 11:45 AM
Copy/Paste how to avoid the copy of formula cells w/o calc values Dennis Excel Discussion (Misc queries) 10 March 2nd 06 10:47 PM
"Unable to set the Formula property of the Series class" with a tw PeterQ Charts and Charting in Excel 1 February 15th 06 07:37 PM
Creating a check mark box MarthaSue Setting up and Configuration of Excel 18 April 28th 05 12:31 AM


All times are GMT +1. The time now is 01:02 PM.

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

About Us

"It's about Microsoft Excel"