PC Review


Reply
Thread Tools Rate Thread

calculation decimal limit

 
 
txfirepro
Guest
Posts: n/a
 
      16th Mar 2004
Hi all,

I have a question thats driving me bonkers. Maybe its just late and I'
loosing it, or maybe it cant be done.

I have a workbook with two spreadsheets.

Sheet one has list prices, each.

Sheet two has formulas calculating costs that go as follows...

References list price on sheet one, multiplies the discount, adds
tax, and multiplies by the number of items in a box.

Example, lets say I sell a soap thats priced by the gallon. I want t
calculate a 40% discount, multiply that times the 5 gallon or 55 gallo
drum it comes in, and add 7.5% tax.

When I set up the cells, I have them in curency format, two decima
places.

When it does the calculation, the total is allways a few cents highe
that usual.

I suspect that Excel is carrying too many decimals into the calc
rounding the number up.

It displays the final calc in 2 decimal places.

My question, How to get it to calc only two decimal places and displa
the right number?

Thanks in advance,

J

--
Message posted from http://www.ExcelForum.com

 
Reply With Quote
 
 
 
 
JE McGimpsey
Guest
Posts: n/a
 
      16th Mar 2004
YOu probably have something like:

=ROUND(A1*(1-40%)*5*(1+7.5%),2)

which will multiply each term successively using the entire precision
available (15 decimal digits)

So

A1: 17.97
B1: =ROUND(A1*0.6*5*1.075,2) ==> 57.95

Where by hand:

17.97 * 0.6 = 10.782 rounds to 10.78
10.78 * 5 = 53.90 (vs. 53.91 for 10.782*5)
53.90 * 1.075 = 57.9425, which rounds down to 57.94

To simulate the hand calculation:

B1: =ROUND(ROUND(A1*0.6,2)*5*1.075,2) ==> 57.94

Note that you don't have to round each step - multiplying X by 5 will
not create a value in the third decimal place if X is already rounded to
2 decimal places.



In article <(E-Mail Removed)>,
txfirepro <<(E-Mail Removed)>> wrote:

> Hi all,
>
> I have a question thats driving me bonkers. Maybe its just late and I'm
> loosing it, or maybe it cant be done.
>
> I have a workbook with two spreadsheets.
>
> Sheet one has list prices, each.
>
> Sheet two has formulas calculating costs that go as follows...
>
> References list price on sheet one, multiplies the discount, adds a
> tax, and multiplies by the number of items in a box.
>
> Example, lets say I sell a soap thats priced by the gallon. I want to
> calculate a 40% discount, multiply that times the 5 gallon or 55 gallon
> drum it comes in, and add 7.5% tax.
>
> When I set up the cells, I have them in curency format, two decimal
> places.
>
> When it does the calculation, the total is allways a few cents higher
> that usual.
>
> I suspect that Excel is carrying too many decimals into the calc,
> rounding the number up.
>
> It displays the final calc in 2 decimal places.
>
> My question, How to get it to calc only two decimal places and display
> the right number?
>
> Thanks in advance,
>
> JT
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
decimal calculation karim Microsoft VB .NET 1 20th Oct 2008 08:43 AM
Calculation with Decimal Cmenkedi Microsoft Excel Worksheet Functions 5 3rd Jan 2008 11:07 PM
Calculation/ decimal problem =?Utf-8?B?Qm9ubmll?= Microsoft Access Macros 4 30th Mar 2007 09:38 PM
The no. of decimal places used in a calculation Chisel Microsoft Excel Discussion 2 17th Jun 2004 10:52 PM
SQL SUM calculation decimal?? ed Microsoft Access Forms 2 25th Mar 2004 05:38 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:58 AM.