+ Reply to Thread
Results 1 to 11 of 11

Index based on more than 2 collumns

  1. #1
    Forum Contributor alexxl's Avatar
    Join Date
    04-21-2015
    Location
    Romania
    MS-Off Ver
    2019/2010
    Posts
    305

    Index based on more than 2 collumns

    I would like to index n1 with formula based on column E wich represend the week based on column i,j and L, How can i bring it matching all this collumns?>
    exercitiu.xlsx


    Alex

  2. #2
    Valued Forum Contributor
    Join Date
    11-29-2022
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    435

    Re: Index based on more than 2 collumns

    I work in WFM so if you tell me what metric you are trying to figure out, I can maybe help you better. Right now, not sure what math N1 is supposed to be doing.

  3. #3
    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,946

    Re: Index based on more than 2 collumns

    Sorry but your explanation makes no sense (to me, at least). I dont understand where I, J and L (TBI OUTBOUBD and AHT) would be referenced to?

    Walk me through how you would do this manually please.
    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

  4. #4
    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,946

    Re: Index based on more than 2 collumns

    Hmm maybe I do see.

    I would add a helper column on sheet 2 (I used col P, use whatever you want, you could also hide it if needed)
    P1=I1&J1&L1
    copied down.

    Then on sheet 1...
    N1=INDEX(Sheet2!N:N,MATCH(Sheet1!I1&Sheet1!J1&Sheet1!L1,Sheet2!P:P,0))
    copied down

  5. #5
    Forum Contributor alexxl's Avatar
    Join Date
    04-21-2015
    Location
    Romania
    MS-Off Ver
    2019/2010
    Posts
    305

    Re: Index based on more than 2 collumns

    Of course my result on n1 i intend to extract from sheet2 with dependency with collumns i mnentioned. E I J & L. Can we make it without the hellper? and i also need collumn e involved in this!
    Last edited by alexxl; 04-03-2024 at 02:28 AM.

  6. #6
    Forum Contributor alexxl's Avatar
    Join Date
    04-21-2015
    Location
    Romania
    MS-Off Ver
    2019/2010
    Posts
    305

    Re: Index based on more than 2 collumns

    Can we make it without the hellper? and i also need collumn e involved in this!

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,437

    Re: Index based on more than 2 collumns

    Are you still using Excel 2016?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  8. #8
    Forum Contributor alexxl's Avatar
    Join Date
    04-21-2015
    Location
    Romania
    MS-Off Ver
    2019/2010
    Posts
    305

    Re: Index based on more than 2 collumns

    Unfortunately my company limited my office 365 just in one place so i need to go with lower versions on this example.

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,437

    Re: Index based on more than 2 collumns

    Try this:

    =INDEX(Sheet2!$N$1:$N$10000,MATCH(1,(Sheet2!$E$1:$E$10000=E1)*(Sheet2!$I$1:$I$10000=I1)*(Sheet2!$J$1:$J$10000=J1)*(Sheet2!$L$1:$L$10000=L1),0))

    **Array formulas are not entered in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you've done it correctly, you'll notice Excel puts curly brackets {} around the formula (though do not attempt to manually insert these yourself).
    Attached Files Attached Files

  10. #10
    Forum Contributor alexxl's Avatar
    Join Date
    04-21-2015
    Location
    Romania
    MS-Off Ver
    2019/2010
    Posts
    305

    Re: Index based on more than 2 collumns

    Omg Yes i remembered! yesterday i could simply not see it. based on your previous help, the compound index, is made like this and it s array.

    =IFERROR(INDEX(Sheet2!N:N,MATCH(1,(E2=Sheet2!E:E)*(KpiDataweek!I2=Sheet2!I:I)*(KpiDataweek!J2=Sheet2!J:J)*(L2=Sheet2!L:L),0)),"")

    Thank you very much!
    Last edited by alexxl; 04-03-2024 at 04:01 AM.

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,437

    Re: Index based on more than 2 collumns

    Yes, indeed - you have had help on this before!!!

    See post #9.

+ 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] Index based on row and collumns
    By alexxl in forum Excel General
    Replies: 4
    Last Post: 06-24-2023, 09:50 AM
  2. [SOLVED] Select range based on dates (collumns) and names (rows)
    By louvaek in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-23-2019, 09:46 PM
  3. [SOLVED] Index Match multiple collumns
    By joshbne in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 11-01-2018, 01:56 PM
  4. Fill Listbox with multiple collumns based on textbox value
    By dark_prince69 in forum Excel Programming / VBA / Macros
    Replies: 43
    Last Post: 09-02-2018, 03:00 PM
  5. Delete duplicates based on two collumns
    By nomis65 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-31-2017, 10:39 AM
  6. Sub Total collumns
    By Darren via OfficeKB.com in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-15-2006, 07:00 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