Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 72
Default Round calculations

I have multiple spreadsheet in a workbook with calculations of the top 10% of
employee by division within the company. I would like to create a macro to
round all those numbers to the nearest whole number so for example I don't
have 1.6 employees, rather I would show 2 employees.

Any suggestions?

Thanks so much!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 98
Default Round calculations

TimN,

Do you need the value of the calculation to be rounded or can just the display value be rounded.

If all you need to *SEE* is a rounded value, then set the decimal places for that cell to zero. The calculated value will still be
1.6, but you will see 2.

If you need the calculated value to be rounded, then wrap the ROUND function around the current calculation. For example, if your
formula is something like:

=16/10
or
=A1/B1

Then your formula afterwards would be:

=ROUND(10/16,0)
or
=ROUND(A1/B1,0)

I hope this helps,

Conan Kelly



"TimN" wrote in message ...
I have multiple spreadsheet in a workbook with calculations of the top 10% of
employee by division within the company. I would like to create a macro to
round all those numbers to the nearest whole number so for example I don't
have 1.6 employees, rather I would show 2 employees.

Any suggestions?

Thanks so much!



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Round Up and Round Down Time DaveMoore Excel Worksheet Functions 2 January 1st 10 12:00 PM
round up calculations georana Excel Discussion (Misc queries) 4 August 31st 07 10:48 AM
VB Function Round vs Excel function Round not behaving the same Od Bud Excel Programming 5 August 18th 06 05:39 AM
Help with ROUND Paul Excel Programming 3 September 27th 05 11:36 PM
How do I ROUND() round off decimals of a column dataset? Højrup Excel Worksheet Functions 2 January 12th 05 10:50 AM


All times are GMT +1. The time now is 07:21 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"