+ Reply to Thread
Results 1 to 5 of 5

spread over columns

  1. #1
    Forum Contributor
    Join Date
    04-16-2014
    Location
    Witbank, SA
    MS-Off Ver
    Excel 2013
    Posts
    268

    spread over columns

    Hi good people!,

    I have learned that it is impossible to have random numbers generated which will tally to a specific total AND be multiples of certain constants. So, I am devising some plan. In my attachment you will notice the random columns, then the value result which all tally to the desired value in cell A1. However, these values are not multiples of the constants (In Bold), so by using a formula which I got this morning from you guys, I slightly alter these values to become multiples of the constants. The sums of these new values obviously do not match the required figure (In A1). Then I have the difference column. My question is if that remainder can be distributed across cells S2-W2, but in such a way that the values will also be multiples of the constants. NOW, not all the cells need to have a greater than zero figure, (Please see example and notes on spreadsheet)...please help me guys, I really accept all suggestions with great humbleness and appreciation.
    Attached Files Attached Files

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: spread over columns

    see altered formulas for L2:P2
    I started from P2 (as you see using desired value - generated by "lower" constants not just generated by this constant):
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    then slightly modified for O2 - includes already calculated P2:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    and can be copied left (because of mixed addresing used in sums)
    the last one - for the lowest const - in L2 can be written just as:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Just to make sure everythuing is fine and to include correction for excel calculations accurecy (further reading: http://support.microsoft.com/kb/214118 ) in (say S2) you can include final check if L2 value is multiple of B1:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Enjoy!
    Attached Files Attached Files
    Best Regards,

    Kaper

  3. #3
    Forum Contributor
    Join Date
    04-16-2014
    Location
    Witbank, SA
    MS-Off Ver
    Excel 2013
    Posts
    268

    Re: spread over columns

    My goodness!!!!!...that saves soooo much work..thank you, thank you and again thank you!!..

  4. #4
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: spread over columns

    Glad to hear that, and thanks for marking thread as Solved.

    It would be lovely if you colud also "add some reputation" by clicking a small star icon in lowerleft corner of my post(s) and then click on "Add reputation" button. Hope you can see it, I've learned that some browsers block this button

    Best Regards,

  5. #5
    Forum Contributor
    Join Date
    04-16-2014
    Location
    Witbank, SA
    MS-Off Ver
    Excel 2013
    Posts
    268

    Re: spread over columns

    I have done so...

+ 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. Pivot Table - Spread data across 2 columns
    By xpiotouopoc in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 11-12-2012, 09:01 AM
  2. Relating multiple columns in two spread sheets
    By Cemt5462 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-01-2011, 05:05 PM
  3. Spread one column across 3 columns
    By Jetheat in forum Excel General
    Replies: 2
    Last Post: 03-11-2009, 03:07 AM
  4. [SOLVED] Compare to columns on two different spread sheet, only pick up the
    By Ming in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-22-2006, 04:30 PM
  5. [SOLVED] Can I add more columns to a spread sheet or is limit 256 columns
    By Piper in forum Excel General
    Replies: 4
    Last Post: 10-09-2005, 04:05 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