#1   Report Post  
Posted to microsoft.public.excel.misc
Pete
 
Posts: n/a
Default Rounding in an array

I have an array in which a number is multiplied by a percentage and then
those numbers are eventually totalled up. Example: 250*50% = 125,
250*25%=62.5, 250*25%=62.5, 125+62.5+62.5=250.

The question I have is: is there any way to have only integers displayed
throughout this process and still keep the correct total? When I try using
the round function now my total is off by 1. Any suggestions?
  #2   Report Post  
Posted to microsoft.public.excel.misc
B. R.Ramachandran
 
Posts: n/a
Default Rounding in an array

Hi,

Select the column (or row) containing the numbers (e.g., 125, 62.5, and
62.5) -- Rightclick on the selection -- "Format Cells" -- click on
"Numbers" Tab, "Category" to "Number" and "Decimal places" to 0. For the
cell containing the total, you can either format it also as above OR use the
ROUND function.

Regards,
B. R. Ramachandran

"Pete" wrote:

I have an array in which a number is multiplied by a percentage and then
those numbers are eventually totalled up. Example: 250*50% = 125,
250*25%=62.5, 250*25%=62.5, 125+62.5+62.5=250.

The question I have is: is there any way to have only integers displayed
throughout this process and still keep the correct total? When I try using
the round function now my total is off by 1. Any suggestions?

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
Return Array with Array Brad Excel Worksheet Functions 10 November 17th 05 06:45 PM
Excel array formulas Les Gordon Excel Discussion (Misc queries) 1 September 3rd 05 04:12 PM
Where is the bug in my array? Gail Gurman Excel Discussion (Misc queries) 1 January 25th 05 12:36 AM
Formula to list unique values JaneC Excel Worksheet Functions 4 December 10th 04 12:25 AM
VBA Import of text file & Array parsing of that data Dennis Excel Discussion (Misc queries) 4 November 28th 04 10:20 PM


All times are GMT +1. The time now is 09:11 AM.

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

About Us

"It's about Microsoft Excel"