+ Reply to Thread
Results 1 to 3 of 3

Split 2 values into multiple rows where combined total per row doesn't exceed specific num

  1. #1
    Registered User
    Join Date
    06-10-2019
    Location
    California, USA
    MS-Off Ver
    Office 365
    Posts
    19

    Split 2 values into multiple rows where combined total per row doesn't exceed specific num

    Hello,

    I have a need to take a value, and split it in to two values based on a percentage (i.e. 12000 split into 51% (6120) and 49% (5880)). But then I have to take these splits and break them down in to combined sums of no more than 5000 per row. (i.e. 2500 & 2500 for first row & second row & 1120 & 880 for the 3rd row.) The initial value can be different each time the formula is run, so the total number of rows can vary, but will most likely not exceed 20 rows total. I've attached a sample workbook to help illustrate this. In the sample workbook, there are two columns (color coded). The values in each row of the colored area can not exceed 5000 per row and must repeat, row after row until the total amount in the column of a specific color sums the value above it.

    I can probably do this with nested IF statements, but was hoping there was an easier way - as after a few rows, the nested IF statements will get quite long.

    Thanks!

    Mr Z.
    Attached Files Attached Files
    Last edited by Mr. Z; 02-18-2020 at 12:53 AM.

  2. #2
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: Split 2 values into multiple rows where combined total per row doesn't exceed specific

    Try this formula in a little different layout
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  3. #3
    Registered User
    Join Date
    06-10-2019
    Location
    California, USA
    MS-Off Ver
    Office 365
    Posts
    19

    Re: Split 2 values into multiple rows where combined total per row doesn't exceed specific

    popipipo - Thank you! That worked perfectly. I understand what your formula is doing and it will solve my issue.

+ 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. Replies: 2
    Last Post: 12-20-2018, 07:02 AM
  2. Split data into multiple columns and rows based on specific string
    By qiyusi in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-13-2018, 02:01 PM
  3. [SOLVED] macro split specific data to respective columns but should not exceed 32 characters
    By JEAN1972 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-01-2018, 02:24 PM
  4. How to split numbers to specific name and total and split
    By ashokavarthanan in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-13-2015, 09:12 AM
  5. Replies: 3
    Last Post: 04-25-2013, 02:55 AM
  6. [SOLVED] 40K Rows with multiple values combined with duplicates removed
    By jthoogie in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 04-01-2013, 04:59 PM
  7. Replies: 2
    Last Post: 10-11-2006, 06:03 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