+ Reply to Thread
Results 1 to 14 of 14

Sum, index, match two columns and put into ascending order

  1. #1
    Registered User
    Join Date
    04-11-2014
    Location
    Iowa
    MS-Off Ver
    Office 2013
    Posts
    20

    Sum, index, match two columns and put into ascending order

    I've already been blessed from the forum with the formula to lookup this table, and put my entries in ascending order. My issue now is, when my panel lengths are the same, I want to sum the quantity needed, and put them into my work order/cut list as one entry, not 2 of the same length.

    Below the tables is what it should look like with the right formula, if possible.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    04-11-2014
    Location
    Iowa
    MS-Off Ver
    Office 2013
    Posts
    20

    Re: Sum, index, match two columns and put into ascending order

    No takers on this Post? Could really use the help.
    Thanks.

  3. #3
    Registered User
    Join Date
    04-11-2014
    Location
    Iowa
    MS-Off Ver
    Office 2013
    Posts
    20

    Re: Sum, index, match two columns and put into ascending order

    I only get a #VALUE with this formula. What I need the formula to do is look at the length column, if there are same lengths for some items, then add those qty together, then put then in the list in ascending order of length.

    =IF(INDEX($B$4:$B$23,MATCH($F$4:$F$23,ROWS(3:3)),$F$4:$F$23,0)=INDEX($B$4:$B$23,MATCH($F$4:$F$23,ROWS(3:3)),$F$4:$F$23,0),SUMIF(F4:F23,"=F4:F23",B4:B23),"")

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Sum, index, match two columns and put into ascending order

    I downloaded the file but I don't see a detailed explanation of what you're wanting to do. Be very specific with your explanation.

    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Registered User
    Join Date
    04-11-2014
    Location
    Iowa
    MS-Off Ver
    Office 2013
    Posts
    20

    Re: Sum, index, match two columns and put into ascending order

    Hope this makes it little more clear.

    Thanks for taking a look.
    Attached Files Attached Files

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Sum, index, match two columns and put into ascending order

    Try this...

    Enter this formula in J3 and copy down to J22:

    =IF(K3="","",SUMIF(E$3:E$22,K3,B$3:B$22))

    Enter this formula in K3:

    =MAX(E3:E22)

    Enter this array formula** in K4 and copy down to K22:

    =IF(K3="","",IFERROR(1/(1/(MAX(IF(E$3:E$22<K3,E$3:E$22)))),""))

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

  7. #7
    Registered User
    Join Date
    04-11-2014
    Location
    Iowa
    MS-Off Ver
    Office 2013
    Posts
    20

    Re: Sum, index, match two columns and put into ascending order

    Tony,
    I apologize for the late reply, I was working away from the CPU last few days. I will test this as soon as possible, thanks so much for the info.

  8. #8
    Registered User
    Join Date
    04-11-2014
    Location
    Iowa
    MS-Off Ver
    Office 2013
    Posts
    20

    Re: Sum, index, match two columns and put into ascending order

    Hum, doesn't seem to be working quite right. Like it's doubling everything?
    I've put the formulas in this example.

    Note: There is one more line of Headers in my original, that's why my formulas start at F4, not F3.

    Thanks.
    Attached Files Attached Files

  9. #9
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Sum, index, match two columns and put into ascending order

    Quote Originally Posted by SteelMaster View Post

    Note: There is one more line of Headers in my original, that's why my formulas start at F4, not F3.
    In the sample file the data to be analyzed starts on row 3 so the formulas have to use references that start at row 3.

    Here's the file using references that start on row 3. The results are correct.

    Forum Example (2).xlsx

  10. #10
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,625

    Re: Sum, index, match two columns and put into ascending order

    Pl see attached file.
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    04-11-2014
    Location
    Iowa
    MS-Off Ver
    Office 2013
    Posts
    20

    Re: Sum, index, match two columns and put into ascending order

    Tony,
    I don't understand why yours works, and not mine. I have the same formulas, but have to start at ROW 4 because I have a header row of just info LABELS. Why would that make a difference?

  12. #12
    Registered User
    Join Date
    04-11-2014
    Location
    Iowa
    MS-Off Ver
    Office 2013
    Posts
    20

    Re: Sum, index, match two columns and put into ascending order

    Thanks for the assist, I wil;l see if I can get it to work on my original. Tony V has a couple formulas that work on his sheet he sent back, but don't work on mine for some reason?

  13. #13
    Registered User
    Join Date
    04-11-2014
    Location
    Iowa
    MS-Off Ver
    Office 2013
    Posts
    20

    Re: Sum, index, match two columns and put into ascending order

    AH! I'm an idiot
    For got to change the K column to 4. Sorry. My bad.

    Thanks for all you help!!

  14. #14
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Sum, index, match two columns and put into ascending order

    Good deal. Thanks for the feedback!


    If your question has been solved please mark the thread as being solved.

    In the menu bar above the very first post select Thread Tools, then select Mark this thread as solved.

+ 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. how to arrange multiple columns in ascending order
    By sanjay2210.msl in forum Excel General
    Replies: 2
    Last Post: 10-29-2013, 08:26 AM
  2. Replies: 3
    Last Post: 06-17-2013, 12:37 PM
  3. How to select two columns of values and sort them into ascending order,but w/o moving them
    By jonathancook in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-10-2013, 05:51 PM
  4. [SOLVED] Sorting Columns in Ascending Order
    By COLIN_303 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-17-2013, 07:51 AM
  5. [SOLVED] Generate "ascending order no" for columns of data that are not in order
    By abreichenbach in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-20-2013, 02:22 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