Rounding issues regarding stock.

DazCD

New Member
Joined
Aug 19, 2024
Messages
10
Office Version
  1. 365
Platform
  1. Windows
Good morning,

Hopefully some one can help me with an issue i've come across.

The scenario:

We have a pack of 6 components, to calculate the individual value of 1 item, we simply do the following calculation: 1/6=0.1666666666666667

Since this many decimal places is impractical to use for us, someone rounded this down to 3 decimal places: 0.167

The problem that is now affecting stock is this rounded value, when multiplied by 6, doesn't equal 1. (0.167*6=1.002)

Is a different way of tackling this? I understand this is a math's question, but we work primarily in excel.

thank you for any replies.
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Good morning,

Hopefully some one can help me with an issue i've come across.

The scenario:

We have a pack of 6 components, to calculate the individual value of 1 item, we simply do the following calculation: 1/6=0.1666666666666667

Since this many decimal places is impractical to use for us, someone rounded this down to 3 decimal places: 0.167

The problem that is now affecting stock is this rounded value, when multiplied by 6, doesn't equal 1. (0.167*6=1.002)

Is a different way of tackling this? I understand this is a math's question, but we work primarily in excel.

thank you for any replies.
Use 1/6, or whatever the pack quantity is, instead of the rounded decimal.
 
Upvote 1
Yes, that is to be expected. If you elect to remove precision, you will have those small rounding differences. It is just a basic fact of math!

There are a few other options, such as:
1. Do NOT round the calculation, simply change the formatting of the cell to only show 3 decimal places. Then it will show 0.167, but really have 0.166666666... stored. So your calculations will be correct.
- or -
2. Round your second calculation to 2 decimals, so it will show 1.00 instead of 1.002.
 
Upvote 1
It seems so obvious doesn't it really when you look back.

I'll 'like' both but both are very much applicable so I won't pass one off as the solution.

thank you both.
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top