+ Reply to Thread
Results 1 to 7 of 7

Help with Formula to Distribute evenly based on pack size of item...

  1. #1
    Registered User
    Join Date
    10-28-2014
    Location
    California, USA
    MS-Off Ver
    2010
    Posts
    16

    Help with Formula to Distribute evenly based on pack size of item...

    Hello I am a new user, hopefully you can help me out:

    I need to add the 10,000p evenly over the cells in the "Total" column based on the amounts in the "Description" column, when Total needs to look something like "Orders" column is set up. (p=Pieces)

    What would the formula look like? Would appreciate any help you can give me, Thanks!
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Help with Formula to Distribute evenly based on pack size of item...

    1) Why are we making the plumbing so difficult by burying the 100 in the middle of a text string Blue100p? The columns are no charge, so let's use them. Put the # of pieces in another column.

    2) So assuming you've added the column for # of pieces, what are your expected results? Mock them up manually:

    Data Range
    A
    B
    C
    D
    E
    F
    G
    H
    I
    J
    1
    Month
    Variety
    Material
    Description
    # of Pieces
    Orders
    Total
    Amount needed to increase evenly
    2
    Nov-14
    123
    111
    Blue100p
    100
    3
    ?
    10,000
    3
    Nov-14
    234
    555
    Green500p
    500
    1
    ?
    4
    Dec-14
    123
    333
    Blue300p
    300
    11
    ?
    5
    Dec-14
    234
    777
    Green700p
    700
    5
    ?
    6
    Jan-15
    123
    888
    Blue800p
    800
    17
    ?
    7
    Jan-15
    234
    999
    Green900p
    900
    8
    ?
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Help with Formula to Distribute evenly based on pack size of item...

    I think this starts moving us in the right direction:

    G2: =(E2*F2) * ($J$2 / SUMPRODUCT($E$2:$E$7*$F$2:$F$7))

    Data Range
    A
    B
    C
    D
    E
    F
    G
    H
    I
    J
    1
    Month
    Variety
    Material
    Description
    # of Pieces
    Orders
    Total
    Amount needed to increase evenly
    2
    Nov-14
    123
    111
    Blue100p
    100
    3
    105.63
    10,000
    3
    Nov-14
    234
    555
    Green500p
    500
    1
    176.06
    4
    Dec-14
    123
    333
    Blue300p
    300
    11
    1,161.97
    5
    Dec-14
    234
    777
    Green700p
    700
    5
    1,232.39
    6
    Jan-15
    123
    888
    Blue800p
    800
    17
    4,788.73
    7
    Jan-15
    234
    999
    Green900p
    900
    8
    2,535.21

  4. #4
    Registered User
    Join Date
    10-28-2014
    Location
    California, USA
    MS-Off Ver
    2010
    Posts
    16

    Re: Help with Formula to Distribute evenly based on pack size of item...

    Hey JBeaucaire,

    Thanks for replying so quickly. To answer your questions:

    1) I am not in a position to change the way the data is set-up, that is how it is given to me. I agree the Pieces should be separated from the description. How would you go about copying the numbers over into the new column?
    (Keep in mind this is thousands of rows of data)

    2) I can't manually change the numbers, since that would take forever.

    Thanks for responding and I hope we can figure this out!

  5. #5
    Registered User
    Join Date
    10-28-2014
    Location
    California, USA
    MS-Off Ver
    2010
    Posts
    16

    Re: Help with Formula to Distribute evenly based on pack size of item...

    Thanks, I will give that a try, although I will need a way to take the numbers from the description and put them into a new column to make it work. Do you have any ideas about that? Thanks again!

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Help with Formula to Distribute evenly based on pack size of item...

    This formula in E2, copied down seems work extracting the numbers from your sample text strings:

    =LOOKUP(9.99E+307,--MID(D2,MIN(FIND({1,2,3,4,5,6,7,8,9,0},D2&1234567890)),ROW(A$1:INDEX($A:$A,LEN(D2)))))

  7. #7
    Registered User
    Join Date
    10-28-2014
    Location
    California, USA
    MS-Off Ver
    2010
    Posts
    16

    Re: Help with Formula to Distribute evenly based on pack size of item...

    Thanks JB, I appreciate all the help you have given me. You saved me a lot of time. Thanks again!

+ 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. [SOLVED] Distribute Tasks Evenly
    By karthikcoep in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-12-2015, 05:48 AM
  2. Distribute Data Evenly
    By sohlican in forum Excel General
    Replies: 13
    Last Post: 09-19-2014, 07:37 PM
  3. Distribute variables evenly
    By Jovanator in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-18-2014, 12:15 PM
  4. Evenly distribute numbers
    By captain118 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-05-2013, 01:27 AM
  5. [SOLVED] Distribute values evenly in two columns
    By MIckeyLove in forum Excel General
    Replies: 0
    Last Post: 04-27-2006, 11:30 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