Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how to get a range of cells rounded off to the nearest value?

5 views
Skip to first unread message

sumesh56

unread,
Mar 29, 2013, 9:53:04 PM3/29/13
to

i have the following data in cells A2:E2. (14.1,25,26.8,17.9,,48.6) i
want to get the figures without the decimals. i tried the following with
negative result.
=Round(A2:E2,0)
i can get the required result in three steps
1.=Sum(A2:E2,0) gives me the result with one decimal
2.select cell at the top and click on the ribbon to reduce the decimal
to nil.
3. use the fill handle
is it possible to accomplish the task with one formula? thanks




--
sumesh56

Spencer101

unread,
Mar 30, 2013, 3:22:16 AM3/30/13
to
Use round on single cells rather that the range.
So, =ROUND(A2,0) and drag/copy across.

If these cells show as having a decimal place but all of those are zero,
then it's formatting rather than the formula not working.

Also worth considering ROUNDDOWN / ROUNDUP depending on how ou need the
results. 17.9 for example wold become 18 with ROUND or ROUNDUP, but 17
with ROUNDDOWN.




--
Spencer101

Kevin@Radstock

unread,
Mar 30, 2013, 7:07:59 AM3/30/13
to

Hi sumesh56

Or summing the interger (Without rounding)
=SUMPRODUCT(INT(A2:E2))
Kevin@Radstock

sumesh56

unread,
Mar 30, 2013, 8:55:04 PM3/30/13
to

Spencer101;1610772 Wrote:
> You don't have to mark them as solved on this forum.
>
> The icon you see is when characters in a formula make those little
> emoticons.
> So when you have a formula that concerns column D for example D: D
> (without a space) becomes D:D.

thanks for the guidance. have a nice day.




--
sumesh56
0 new messages