+ Reply to Thread
Results 1 to 24 of 24

Multiples Index/Match/Multiples Columns But to be concatenate in respective Rows

  1. #1
    Registered User
    Join Date
    10-14-2017
    Location
    Miami, Florida
    MS-Off Ver
    2016
    Posts
    83

    Multiples Index/Match/Multiples Columns But to be concatenate in respective Rows

    Hi

    I'm having a lot trouble to find out the formula (formulas or vba) to Index/match multiples columns.
    I do know hot to index/match 1 pair of columns with (Column A= NUMBERS, Column B - Values)
    For Index
    Please Login or Register  to view this content.
    For Match
    Please Login or Register  to view this content.
    But now i need to index/match a 6 Pairs of Columns ( 6 Col with Numbers + 6 Col with Values)
    How to acomplice that??, can someone help me?

    Please find the Sample File attached


    Thanks !!!!
    Attached Files Attached Files
    Last edited by AndyJr; 12-02-2018 at 11:16 PM. Reason: grammrar

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: Multiples Index/Match/Multiples Columns But to be concatenate in respective Rows

    VBA.

    Results are slightly different, so need your clear explanation of your logic.

    Please Login or Register  to view this content.
    Or simply a formula in O8

    =SUMIF($A$3:$K$8,O7,$B$3:$L$8)
    Last edited by jindon; 12-02-2018 at 11:52 PM.

  3. #3
    Registered User
    Join Date
    10-14-2017
    Location
    Miami, Florida
    MS-Off Ver
    2016
    Posts
    83

    Re: Multiples Index/Match/Multiples Columns But to be concatenate in respective Rows

    Hi Jindon,

    The logic is to sum the value Columns to each Number Column that belong to it.
    For example:
    Number 98
    have 35 Points (located in J3) so, #98 should be 1st Left

    Number 120
    Have 23 points (points located on B7, D3, F8, J8, L3)-> 4+7+4+4+4 =23)

    Number 97
    Have 22 points (points located on J4)

    Number 101
    Have 18 points (points located on B8, F5, H8, I7)->4+6+4+4 =18

    So The list of Numbers with their points should be like :

    Numbers -->98__120__97__101
    Points -----> 35__23___22__18

    I think is Index match but is using multiples columns..

    Thanks Jindon

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: Multiples Index/Match/Multiples Columns But to be concatenate in respective Rows

    See the formula in my previous post...

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Multiples Index/Match/Multiples Columns But to be concatenate in respective Rows

    This is very much brute-force, but may be worth a shot for you. I also dont get all the same answers you get, nor how you get so many answers? (15)

    My approach was to use helper columns, you can then summarize them
    AF3=IFERROR(VLOOKUP(A3,$A$3:$B$8,2,0),0)+IFERROR(VLOOKUP(A3,$C$3:$D$8,2,0),0)+IFERROR(VLOOKUP(A3,$E$3:$F$8,2,0),0)+IFERROR(VLOOKUP(A3,$G$3:$H$8,2,0),0)+IFERROR(VLOOKUP(A3,$I$3:$J$8,2,0),0)+IFERROR(VLOOKUP(A3,$K$3:$L$8,2,0),0)
    copied down, with a SUM in AF9

    Copy all that across to alternate columns - AH, AJ etc (you can delete the empty columns when you are done)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: Multiples Index/Match/Multiples Columns But to be concatenate in respective Rows

    I originally thought you only need up to 5 colums(A - J)

    Seems you want all in the table
    VBA change
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    10-14-2017
    Location
    Miami, Florida
    MS-Off Ver
    2016
    Posts
    83

    Re: Multiples Index/Match/Multiples Columns But to be concatenate in respective Rows

    Hi Jindon.

    Yes i tried the code, the points is not indexed

    And the Output is different, This is what i got:
    Value 100 120 110 99 98 115 106 102 97 105 90 101 92 93 116
    Points 10 19 11 8 35 10 6 4 22 4 13 14 9 12 9

    It should be like :
    Value 98 120 97 101 90 93 100 116 110 115 92 99 106 102 105
    Points 35 23 22 18 17 16 14 13 10 10 9 8 6 4 4

    Thanks

  8. #8
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: Multiples Index/Match/Multiples Columns But to be concatenate in respective Rows

    Did you try the formula?

    Or simply a formula in O8

    =SUMIF($A$3:$K$8,O7,$B$3:$L$8)

  9. #9
    Registered User
    Join Date
    10-14-2017
    Location
    Miami, Florida
    MS-Off Ver
    2016
    Posts
    83

    Re: Multiples Index/Match/Multiples Columns But to be concatenate in respective Rows

    FDibbins

    To be honest since i start to learn excel i read (quite few times) that index match is better than vlookup, So my ignorance guide me avoid it... (just kidding)
    I'll start to read about Vlookup, Hlookup..

    Thanks!!

  10. #10
    Registered User
    Join Date
    10-14-2017
    Location
    Miami, Florida
    MS-Off Ver
    2016
    Posts
    83

    Re: Multiples Index/Match/Multiples Columns But to be concatenate in respective Rows

    Hi Jindon

    Yes i tried
    the formula index the Values, no the numbers, but now is easy to figure it out

    Thanks !!!!

  11. #11
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,899

    Re: Multiples Index/Match/Multiples Columns But to be concatenate in respective Rows

    Try:

    =SUMPRODUCT(($A$3:$K$8=O7)*MOD(COLUMN($A$3:$K$8),2),$B$3:$L$8)

    If B3 is 100 then the result is 108

  12. #12
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: Multiples Index/Match/Multiples Columns But to be concatenate in respective Rows

    You are welcome and thanks for the rep.

    As I mentioned, if vba this should create the result.
    Please Login or Register  to view this content.
    And your result is missing "98"...

  13. #13
    Registered User
    Join Date
    10-14-2017
    Location
    Miami, Florida
    MS-Off Ver
    2016
    Posts
    83

    Re: Multiples Index/Match/Multiples Columns But to be concatenate in respective Rows

    Hi Jindon,

    I replaced
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    still receiving non indexed both rows

    Value 100 120 110 99 98 115 106 102 97 105 90 101 92 93 116
    Points 14 23 11 8 35 10 6 4 22 4 17 18 9 16 13

    Thanks
    Last edited by AndyJr; 12-03-2018 at 01:14 AM.

  14. #14
    Registered User
    Join Date
    10-14-2017
    Location
    Miami, Florida
    MS-Off Ver
    2016
    Posts
    83

    Re: Multiples Index/Match/Multiples Columns But to be concatenate in respective Rows

    Jindon.

    The 98 is the first one left with 35 points

  15. #15
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Multiples Index/Match/Multiples Columns But to be concatenate in respective Rows

    Quote Originally Posted by AndyJr View Post
    FDibbins

    To be honest since i start to learn excel i read (quite few times) that index match is better than vlookup, So my ignorance guide me avoid it... (just kidding)
    I'll start to read about Vlookup, Hlookup..

    Thanks!!
    Depending on the situation, that may be correct, but in this case, the VL is simpler to apply (I think, anyway)

  16. #16
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: Multiples Index/Match/Multiples Columns But to be concatenate in respective Rows

    Am I missing something?
    Attached Files Attached Files

  17. #17
    Registered User
    Join Date
    10-14-2017
    Location
    Miami, Florida
    MS-Off Ver
    2016
    Posts
    83

    Re: Multiples Index/Match/Multiples Columns But to be concatenate in respective Rows

    hi Phuocam

    I dont understand why,

    If B3 is 100 then the result is 108
    Thanks

  18. #18
    Registered User
    Join Date
    10-14-2017
    Location
    Miami, Florida
    MS-Off Ver
    2016
    Posts
    83

    Re: Multiples Index/Match/Multiples Columns But to be concatenate in respective Rows

    Jindon,

    Yes, is missing the Number indexed with the values summed
    The code display
    Value 1,2,3,4,5__100__120__110__99__98__115__106__102__97__105__90__101__92__93__116
    Points 1,2,3,4,5__14___23___11___8___35__10___6____4____22__4____17__18___9___16__13

    But Indexed is supposed to look like :
    Value 1,2,3,4,5__98__120__97__101__90__93__100__116__110__115__92__99__106__102__105
    Points 1,2,3,4,5__35__23___22__18___17__16__14___13___10___10___9___8___6____4____4

  19. #19
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: Multiples Index/Match/Multiples Columns But to be concatenate in respective Rows

    Are you talking about the order?
    Please Login or Register  to view this content.

  20. #20
    Registered User
    Join Date
    10-14-2017
    Location
    Miami, Florida
    MS-Off Ver
    2016
    Posts
    83

    Re: Multiples Index/Match/Multiples Columns But to be concatenate in respective Rows

    Jindon

    Yes!, Order
    The number with more points going from lef to right (the right are the numbers with least points)
    Its like Sort Numbers with most points.

    I'm sorry my mistake, i don't know how to say it correct..

  21. #21
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: Multiples Index/Match/Multiples Columns But to be concatenate in respective Rows

    Your PM
    The problem is that the code is not sorting the points, You added the sort Line
    but not work,
    Working for me...
    Attached Files Attached Files

  22. #22
    Registered User
    Join Date
    10-14-2017
    Location
    Miami, Florida
    MS-Off Ver
    2016
    Posts
    83

    Re: Multiples Index/Match/Multiples Columns But to be concatenate in respective Rows

    Hi Jindon,

    Is working on the sample file, wow... I just replaced the numbers and points

    (i may did something wrong..)


    Thank you Jindon

  23. #23
    Registered User
    Join Date
    10-14-2017
    Location
    Miami, Florida
    MS-Off Ver
    2016
    Posts
    83

    Re: Multiples Index/Match/Multiples Columns But to be concatenate in respective Rows

    Hi Jindon,

    As i mention.

    I'm using the code in a WB with 2 sheet, Both sheet have the same data,

    In One sheet display correct Output
    (Values at Top, Points sorted at botton of each Value)

    On the 2nd sheet
    Values are at bottom, Points at top and is not sorted (order)


    Thanks

  24. #24
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: Multiples Index/Match/Multiples Columns But to be concatenate in respective Rows

    OK,

    Can you change
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.

+ 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] Combine text from multiples columns into one
    By simonp90 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-02-2018, 03:32 PM
  2. [SOLVED] vba to concatenate data and return multiples values from unique list
    By JEAN1972 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-30-2017, 11:27 AM
  3. [SOLVED] How to nest formula MATCH , ROW to display multiples criteria
    By Franky alta in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 12-13-2015, 10:20 PM
  4. Returning Multiples Values with a Lookup using Index Array
    By NEEDEXCELHELP123456 in forum Hello..Introduce yourself
    Replies: 2
    Last Post: 11-04-2014, 10:16 AM
  5. [SOLVED] Need Index and Match to return multiples values in the same cell
    By ludi in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-16-2013, 10:50 AM
  6. Replies: 1
    Last Post: 03-22-2013, 10:05 AM
  7. copying columns by set multiples - addendum
    By TonySom in forum Excel General
    Replies: 0
    Last Post: 10-12-2012, 05:00 AM

Tags for this Thread

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