Computer Learning Zone CLZ Access Excel Word Windows

Things are only impossible until they are not.

-Jean-Luc Picard
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Tip: Rounding Numbers    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Rounding Allocation Percentages
J 

16 years ago
I'm working on a building a export file of Portfolio Holdings that will be imported into a system that can only take whole integers.  

The access database I’m pulling from stores and calculated the individual holdings weighting based on home many securities are selected to be held.  

ex. 25% of the portfolio is allocated among 4 securities.  25/4 = 6.25 per security.  Or this could change to 25% allocated among 3 securities…25/3=8.33 (realistically N securities)
Problem arises when I round.  If all are rounded down,  8+8+8=24 not 25.  At the end of the day I need various groups of 25%(any size group, with any # of holdings within the group) to add up to 100%.

Any Ideas?



Reply from Richard Rost:

You would have to perform the math, rounding down. Then, when you're done, check the sum of the parts, and if they don't add up, add 1 to the first (or last) item in the group.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Tip: Rounding Numbers.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/2/2026 8:19:35 AM. PLT: 1s