ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Rounding in Excel (https://www.excelbanter.com/excel-discussion-misc-queries/110067-rounding-excel.html)

Jday

Rounding in Excel
 
I ave read many publications on rounding, but can't get an answer. I know how
to round a given cell. How do you round the result of an equation to the
lowest eigth? In other words, =sum(a1-b2), where a1 is = to 3.75 and b2 is =
..05 , result (3.70), but the result should be rounded down to the next lowest
1/8th? 3.625 in the equation shown.

Bernard Liengme

Rounding in Excel
 
Firstly, it I want A1-B1 I do not need the SUM function, I can use just
=A1-B1
Secondly, to round to a fraction (1/N) we multiple by N, round to zero
decimals and divide by N
You asked for round down, so use =ROUNDDOWN((A1-B1)*8,0)/8
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Jday" wrote in message
...
I ave read many publications on rounding, but can't get an answer. I know
how
to round a given cell. How do you round the result of an equation to the
lowest eigth? In other words, =sum(a1-b2), where a1 is = to 3.75 and b2 is
=
.05 , result (3.70), but the result should be rounded down to the next
lowest
1/8th? 3.625 in the equation shown.




Elkar

Rounding in Excel
 
Try this:

=ROUNDDOWN((A1-B2)/.125,0)*.125

HTH,
Elkar


"Jday" wrote:

I ave read many publications on rounding, but can't get an answer. I know how
to round a given cell. How do you round the result of an equation to the
lowest eigth? In other words, =sum(a1-b2), where a1 is = to 3.75 and b2 is =
.05 , result (3.70), but the result should be rounded down to the next lowest
1/8th? 3.625 in the equation shown.


JE McGimpsey

Rounding in Excel
 
one way:

=FLOOR(A1-B2,0.125)

In article ,
Jday wrote:

I ave read many publications on rounding, but can't get an answer. I know how
to round a given cell. How do you round the result of an equation to the
lowest eigth? In other words, =sum(a1-b2), where a1 is = to 3.75 and b2 is =
.05 , result (3.70), but the result should be rounded down to the next lowest
1/8th? 3.625 in the equation shown.



All times are GMT +1. The time now is 01:27 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com