+ Reply to Thread
Results 1 to 9 of 9

Split cell numbers into equal pre quantities and whatevers left...

  1. #1
    Registered User
    Join Date
    12-30-2016
    Location
    LONDON, ENGLAND
    MS-Off Ver
    2003+
    Posts
    4

    Split cell numbers into equal pre quantities and whatevers left...

    Hello all..

    Little problem hopefully someone can help with-


    If you want to split a number in a cell into equal amounts and what ever is left, left on its own. IE, split say, 150 into 2x55 and 1x40 or 55,55,40 etc.. is there any way to do this based on the split number ie weather its splits of 55's 40's etc etc...

    Examples-

    128 = 2x55 1x18 (55,55,18)

    89 = 1x55 1x34 (55,34)

    Thanks a lot

    Si

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2407 (Windows 11 23H2 64-bit)
    Posts
    83,462

    Re: Split cell numbers into equal pre quantities and whatevers left...

    Welcome to the forum!

    Your description of what you want lacks clarity. What do you expect the output to look like? Are you going to tell Excel which number to split by, or is Excel expected to do that itself? If the latter, what is the logic?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    12-30-2016
    Location
    LONDON, ENGLAND
    MS-Off Ver
    2003+
    Posts
    4

    Re: Split cell numbers into equal pre quantities and whatevers left...

    Hello

    Thanks for the reply, sorry it wasnt made clear...

    i have attached a image (not sure if that has worked though) which i hope makes it a little clearer, it doesnt matter what the output looks like as long as it displays the split quantities..

    Thanks for your help..

    Simon

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2407 (Windows 11 23H2 64-bit)
    Posts
    83,462

    Re: Split cell numbers into equal pre quantities and whatevers left...

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,624

    Re: Split cell numbers into equal pre quantities and whatevers left...

    There will be MANY ways to do this. here's one. Assumes the original number is in A1, A2, etc,. In B1, copied across and down, use:

    =MAX(0,IF($A1-55*COLUMNS($A:A)>0,55,$A1-55*(COLUMNS($A:A)-1)))
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  6. #6
    Registered User
    Join Date
    12-30-2016
    Location
    LONDON, ENGLAND
    MS-Off Ver
    2003+
    Posts
    4

    Re: Split cell numbers into equal pre quantities and whatevers left...

    Hi Glen.


    This is the kinda thing im after... if i wanted to do the split by 110 which fiugure would i change in the formula..?

    Thanks

    Simon

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,624

    Re: Split cell numbers into equal pre quantities and whatevers left...

    Just change all 3 of the 55s to 110s and it should be fine.

  8. #8
    Registered User
    Join Date
    12-30-2016
    Location
    LONDON, ENGLAND
    MS-Off Ver
    2003+
    Posts
    4

    Re: Split cell numbers into equal pre quantities and whatevers left...

    Amazing stuff, Thank you for the help..!

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,624

    Re: Split cell numbers into equal pre quantities and whatevers left...

    You're welcome and thanks for the Rep.

+ 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. VBA to split/copy rows based on max quantities
    By oticas in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-23-2015, 06:03 PM
  2. Replies: 11
    Last Post: 10-16-2013, 10:21 PM
  3. Calculating Production Quantities for equal Days on Hand
    By PJM1981 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-17-2013, 09:11 AM
  4. Need VBA code to split quantities based on availability in another table
    By adelkam in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-30-2013, 01:45 AM
  5. equal numbers of character in each Cell
    By Chetan Chauhan in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-16-2009, 08:00 AM
  6. Replies: 6
    Last Post: 06-30-2006, 01:55 AM

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