Help with making whole numbers in multiple calculations

Adecon

New Member
Joined
Apr 20, 2022
Messages
13
Office Version
  1. 365
Platform
  1. Windows
Sorry about the title but this is really difficult to explain. I hope it makes sense.

1693155757630.png


B & D are products of a calculation of A with another cell. C is B*0.95 and E is D*0.95. I need B & D to be whole numbers for the purpose of the calculation in C & E. If I format B & D to a number with 0 decimal places, the calculation still thinks it has decimal places -

1693156170915.png


when in fact, 25.0 x 0.95 = 23.75 (24).

Am I being stupid (don't answer that!) or can this be done in some way without the need to add extra columns with additional staging calculations?

Thanks in advance
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
=ROUND(SUM(E6*0.95),0) - this seems to work perfectly. Thanks Sanjay
As I indicated before, SUM does nothing in your formulas (other than make Excel do an unnecessary extra calculation)
This does exactly the same thing without the unnecessary SUM calculation
=ROUND(E6*0.95,0)
 
Upvote 1
Solution
when in fact, 25.0 x 0.95 = 23.75 (24).
I also face such complex situation where you need to know exact number yet any round UP/down distorst results

The solution is that in display (format) you choose zero decimal places and in background excel woll multiply with decimal figures only. This will serve both purposes for you.

Hope it helps
 
Upvote 0
How about
Excel Formula:
=ROUND(B2,0)*0.95
 
Upvote 0
Actually my XL2BB is giving problem so I can only add screenshot to help you understand

It's a very long calculation, I have just shown you small part of it.

Any change in decimals can deviate end results by huge numbers. so found the solution I suggested you and I'm using.
 

Attachments

  • Screenshot 2023-08-27 at 23.00.02.png
    Screenshot 2023-08-27 at 23.00.02.png
    18.7 KB · Views: 8
Upvote 0
I also face such complex situation where you need to know exact number yet any round UP/down distorst results

The solution is that in display (format) you choose zero decimal places and in background excel woll multiply with decimal figures only. This will serve both purposes for you.

Hope it helps
Hi Sanjay, I think you're suggesting using format cells>number>0 decimal places - correct? If so, this does not work for me. When multiplying that by 0.95 (95%), I get 23 and not 24 as it seems to still take the full number. I think the "0 decimal places" is simply a mask rather than an actual rounding.
 
Upvote 0
How about
Excel Formula:
=ROUND(B2,0)*0.95
Hi Fluff,, Thanks for your reply but If I put replace C [=SUM(B2*0.95)] with your suggestion, the product is "0". Could this be because B is a calculated cell?
 
Upvote 0
B & D are products of a calculation of A with another cell. ..... I need B & D to be whole numbers
Please show us the calculations that you currently have for B & D and tell us what is in the "another cell"

XL2BB would be very helpful for the above request.
 
Upvote 0
Handicaps 230827 test.xlsx
ABCDEF
2Course Handicap IndexWhites131
3Yellows124
4Name HandicapCourse Handicap (Whites)Playing Handicap (Whites)Course Handicap (Yellows)Playing Handicap (Yellows)
5
621.925242423
742.549474744
89.511101010
921.024232322
1026.230292927
1127.332303028
1222.526252523
1321.325232322
1419.623222220
1512.514141413
1621.024232322
1722.927252524
1828.934323230
1916.319181817
2016.719181817
2126.531292928
2215.518171716
2320.824232322
2439.446434341
2518.321202019
267.69888
278.510999
2821.024232322
2913.916151514
Sheet1
Cell Formulas
RangeFormula
C6C6=SUM(B6*(D2/113))
D6:D29,F6:F29D6=SUM(C6*0.95)
E6E6=SUM(B6*(D3/113))
C7C7=SUM(B7*(D2/113))
E7E7=SUM(B7*(D3/113))
C8C8=SUM(B8*(D2/113))
E8E8=SUM(B8*(D3/113))
C9C9=SUM(B9*(D2/113))
E9E9=SUM(B9*(D3/113))
C10C10=SUM(B10*(D2/113))
E10E10=SUM(B10*(D3/113))
C11C11=SUM(B11*(D2/113))
E11E11=SUM(B11*(D3/113))
C12C12=SUM(B12*(D2/113))
E12E12=SUM(B12*(D3/113))
C13C13=SUM(B13*(D2/113))
E13E13=SUM(B13*(D3/113))
C14C14=SUM(B14*(D2/113))
E14E14=SUM(B14*(D3/113))
C15C15=SUM(B15*(D2/113))
E15E15=SUM(B15*(D3/113))
C16C16=SUM(B16*(D2/113))
E16E16=SUM(B16*(D3/113))
C17C17=SUM(B17*(D2/113))
E17E17=SUM(B17*(D3/113))
C18C18=SUM(B18*(D2/113))
E18E18=SUM(B18*(D3/113))
C19C19=SUM(B19*(D2/113))
E19E19=SUM(B19*(D3/113))
C20C20=SUM(B20*(D2/113))
E20E20=SUM(B20*(D3/113))
C21C21=SUM(B21*(D2/113))
E21E21=SUM(B21*(D3/113))
C22C22=SUM(B22*(D2/113))
E22E22=SUM(B22*(D3/113))
C23C23=SUM(B23*(D2/113))
E23E23=SUM(B23*(D3/113))
C24C24=SUM(B24*(D2/113))
E24E24=SUM(B24*(D3/113))
C25C25=SUM(B25*(D2/113))
E25E25=SUM(B25*(D3/113))
C26C26=SUM(B26*(D2/113))
E26E26=SUM(B26*(D3/113))
C27C27=SUM(B27*(D2/113))
E27E27=SUM(B27*(D3/113))
C28C28=SUM(B28*(D2/113))
E28E28=SUM(B28*(D3/113))
C29C29=SUM(B29*(D2/113))
E29E29=SUM(B29*(D3/113))
 
Upvote 0
It's a golf handicap calculator for our golf group. I have highlighted a cell which illustrates the issue.
 
Upvote 0

Forum statistics

Threads
1,215,746
Messages
6,126,642
Members
449,325
Latest member
Hardey6ix

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