+ Reply to Thread
Results 1 to 10 of 10

sorting/puting items in a table based on the values from another table

  1. #1
    Registered User
    Join Date
    01-24-2011
    Location
    Arad, Romania
    MS-Off Ver
    Excel 2003 SP3
    Posts
    12

    sorting/puting items in a table based on the values from another table

    Hi.

    I want to sort in a table the high runners and the low runners. All items that are being produced more than 500 pcs per week should go in the high runners table and all that don't, in the low runners table? How can i make that in Excel?

    See attachment for experimenting and exemplification of my problem.
    Thank you in advance.
    Attached Files Attached Files
    Last edited by dhrddm; 02-01-2011 at 05:35 AM.

  2. #2
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

    Re: sorting/puting items in a table based on the values from another table

    Do cols b, c d, e and f represent weeks?

    is the data in col a a list of runners?

    for example ---- is 305683720162-AC

    a high runner in week one and a low runner in week two?

    You need to explain your data a bit better
    Blake 7

    If your question has been answered, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

    If any member's response has helped to solve your problem, please consider using the scales icon on the top right of their post to show your appreciation.

    http://failblog.org/

  3. #3
    Registered User
    Join Date
    01-24-2011
    Location
    Arad, Romania
    MS-Off Ver
    Excel 2003 SP3
    Posts
    12

    Re: sorting/puting items in a table based on the values from another table

    days, not weeks. And yes, 305683720162-AC is a runner.

  4. #4
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

    Re: sorting/puting items in a table based on the values from another table

    I'm sure there is a better way of doing this using sumproduct with if but i dont know how to.... so im calling in the cavalry! however, this solution should work.

    In G1 enter

    =SUM(IF($A$1:$A$24=A1,$B$1:$F$24)) hit CSE

    in col H

    =IF(G1>500,A1,"") (list of high runners)

    In Col I

    =IF(G1<500,A1,"") (list of low runners)

    Hope this helps

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: sorting/puting items in a table based on the values from another table

    You can perhaps add a helper column... so in G1:
    Please Login or Register  to view this content.
    copied down

    Then, in K4 add a count:
    Please Login or Register  to view this content.
    in K14:
    Please Login or Register  to view this content.
    (this assumes you don't want the 0 runners.. if you do remove the second COUNTIF)

    then in L5:

    Please Login or Register  to view this content.
    confirmed with CTRL+SHIFT+ENTER and copied down.

    in L12:
    Please Login or Register  to view this content.
    confirmed with CTRL+SHIFT+ENTER and copied down.
    Attached Files Attached Files
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  6. #6
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

    Re: sorting/puting items in a table based on the values from another table

    N - thanks so much for looking at this.

    Dont know why I thought that a sumproduct would work on this, guess i dont understand SP v well!!

    I will now study your option!

    All the best..........

    BTW are you on the list?

    https://mvp.support.microsoft.com/co...mpetency=Excel

    I used the link you sent! thanks

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: sorting/puting items in a table based on the values from another table

    Blake, I sent you a PM link to my profile.

  8. #8
    Registered User
    Join Date
    01-24-2011
    Location
    Arad, Romania
    MS-Off Ver
    Excel 2003 SP3
    Posts
    12

    Re: sorting/puting items in a table based on the values from another table

    i marked this as solved because it is nearly solved. There is still a little error in the formula it seems...
    i put 2000 from A1 to A5 so that they will be recognized as high runners and in A6 i put 1 so that A6 will be recognized as low runner. In fact in the high runner list got A1:A5 (as wished) but in the low runner list A6 didn't made it... Instead, in the list of low runners went A1 (!!!) which clearly is no low runner... What happened?

  9. #9
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

    Re: sorting/puting items in a table based on the values from another table

    As you marked the thread as solved there is a possibility that N (who wrote the formula) and other people will skip this post.

    May I suggest that you start a new thread and attach the spreadsheet.

  10. #10
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: sorting/puting items in a table based on the values from another table

    It is column G that is looked at in my formulas (i.e. the sums of columns B:F) When I made it so the sums of G1:G5 where each 2000 and the sum of G6 was 1, it works in both tables as expected. See attached.

    Blake 7, marking the thread Solved doesn't deter us from returning to the thread. Most of us maintain our subscribed status to the thread and will know when a thread has been continued, whether previously marked solved or not. If after a certain amount of time (a day or so) no response received, then you can either bump and try again or start a new thread with a link to the solved thread for continuity.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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