+ Reply to Thread
Results 1 to 2 of 2

Choose a Random Cell, Calculate Formula & Round

  1. #1
    Registered User
    Join Date
    08-25-2008
    Location
    Texas
    MS-Off Ver
    2010
    Posts
    80

    Choose a Random Cell, Calculate Formula & Round

    The title may be a bit deceiving. The setup is:

    A1 - Enter any number
    A2 - 30% of A1
    A3 - 30% of A1
    A4 - 25% of A1
    A5 - 15% of A1

    What I need to get in each cell is a whole number, and when the 4 cells (A2:A5) are added, it totals the amount in A1. Some numbers, like 16, work with a simple =Round($A$1$*.3,0) in Cell B1, but numbers like 8 will return a total value of 7 after rounding and calculating.

    Is there a way to make it round a random cell each time so that the sum of A2:A5 always equals the amount entered into A1?

    I probably made it more complicated than it has to be. I've attached a spreadsheet. Thanks for taking the time to read.
    Attached Files Attached Files

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Choose a Random Cell, Calculate Formula & Round

    If you have to use integers and you want your numbers to always add up correctly, then you'll need one of the portions to be a dumping ground for all the other dropped decimals.

    A5 or the smallest category should instead be A1-A2-A3-A4 = approximately 15% + everything left over
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Choose Random Cell From Range Value Unless Equals 0
    By Hellfromabove in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-03-2014, 09:09 PM
  2. [SOLVED] If row contains 1(s) then choose random column title
    By sniglet in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-10-2013, 01:09 PM
  3. Choose 4 Random Numbers if they are not textbox1 or textbox2
    By blitz74 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-03-2012, 02:41 AM
  4. Choose Random Value Based On List
    By kblaine in forum Excel General
    Replies: 5
    Last Post: 04-20-2011, 02:41 PM
  5. Replies: 2
    Last Post: 04-09-2010, 04:43 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1