+ Reply to Thread
Results 1 to 7 of 7

Distribute Data Evenly Among n Cells

  1. #1
    Registered User
    Join Date
    04-17-2013
    Location
    Walla Walla, Washington
    MS-Off Ver
    Excel 2007
    Posts
    19

    Distribute Data Evenly Among n Cells

    Hello! I have a issue/question that I have been working on for months, to no avail, and I thought I'd get some assistance if possible.

    I have a number of rows with 4 columns: Item Name, Model Number, Current Quantity, New Quantity.

    I need a formula to add each cell in Current Quantity that corresponds with that cells Model Number, and divide the result as evenly as possible among each of that Model Number, while maintaining a whole number. The number of rows is variable. here is an example.

    ITEM NAME MODEL NUMBER CURRENT QUANTITY NEW QUANTITY
    football1 AAAAAAAA 7
    football2 AAAAAAAA 3
    football3 AAAAAAAA 1
    baseball1 AAAAAAAB 5
    baseball2 AAAAAAAB 12
    soccerball1 AAAAAAAC 1
    soccerball2 AAAAAAAC 1
    soccerball3 AAAAAAAC 5
    soccerball4 AAAAAAAC 14


    As you can see, there aren't always the same number of Model Numbers. After the function is in place, it should look like this:

    ITEM NAME MODEL NUMBER CURRENT QUANTITY NEW QUANTITY
    football1 AAAAAAAA 7 4
    football2 AAAAAAAA 3 4
    football3 AAAAAAAA 1 3
    baseball1 AAAAAAAB 5 9
    baseball2 AAAAAAAB 12 8
    soccerball1 AAAAAAAC 1 6
    soccerball2 AAAAAAAC 1 5
    soccerball3 AAAAAAAC 5 5
    soccerball4 AAAAAAAC 14 5

    I am fairly certain that the required formula will have COUNTIF and SUMIF in it, but I'm still lost.

    I HOPE some one understands what I am trying to do. If it is still too complicated, let me know, and I will try to explain further.

    Thank you in advance for any help you may be able to give!

  2. #2
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Distribute Data Evenly Among n Cells

    Try this In (I'm assuming this starts at A1?) D2:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Extend down

    Hope this helps

    Note- this one does the same, except in reverse order to what you specified :
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    A picture may be worth a thousand words, BUT, a sample Workbook is worth a thousand screenshots!
    -Add a File - click advanced (next to quick post), scroll to manage attachments, click, select add files, click select files, select file, click upload, when file shows up at bottom left, click done (bottom right), click submit
    -To mark thread Solved- go top of thread,click Thread Tools,click Mark as Solved
    If you received helpful response, please remember to hit the * of that post

  3. #3
    Registered User
    Join Date
    04-17-2013
    Location
    Walla Walla, Washington
    MS-Off Ver
    Excel 2007
    Posts
    19

    Re: Distribute Data Evenly Among n Cells

    Sorry for such a late reply, as I was out of my office for the weekend, but thank you! I'm going to try this out now.

  4. #4
    Registered User
    Join Date
    04-17-2013
    Location
    Walla Walla, Washington
    MS-Off Ver
    Excel 2007
    Posts
    19

    Re: Distribute Data Evenly Among n Cells

    IT WORKS LIKE A CHARM!

    Thank you, dredwolf! You've helped me solve an issue i've been having for months, and taught me a few new excel functions! Thank you so much!

  5. #5
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Distribute Data Evenly Among n Cells

    You are welcome !

  6. #6
    Registered User
    Join Date
    02-11-2015
    Location
    Mumbai , India
    MS-Off Ver
    2007
    Posts
    1

    Re: Distribute Data Evenly Among n Cells

    Distribute the Number evenly.

    I have a sheet- Sheet1 and sheet2
    in the sheet1 i have 3 column A B C
    wherein column A has text
    Column B has number of pages example 200 , 500 1000, 2450 Pages etc...
    Column C is blank

    what i want is that I want from column B the number of pages need to be divided equally to column C with name which is there in the sheet2 column A2:A100

    Item Pages Name
    american muslims 110
    american ballet theatre 103
    american idol 296
    american express 103
    american assassin 49
    american girl 214
    amhara 91
    american woman 143
    american society 129
    american revolution 99
    amit badana 45
    amiga 153
    american music awards 121
    amherst 148
    amok 85

  7. #7
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    Win10/MSO2016
    Posts
    12,966

    Re: Distribute Data Evenly Among n Cells

    akbarmahfuzalam,
    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    Ben Van Johnson

+ 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 Duration Evenly Amongst Tasks
    By mycon73 in forum Excel General
    Replies: 5
    Last Post: 09-10-2013, 11:21 AM
  4. Evenly distribute numbers
    By captain118 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-05-2013, 01:27 AM
  5. Evenly distribute values that have different frequencies
    By limit30263 in forum Excel General
    Replies: 0
    Last Post: 06-01-2011, 11:02 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