+ Reply to Thread
Results 1 to 7 of 7

index, match, vlookup, array ....combining all these?

  1. #1
    Registered User
    Join Date
    10-18-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    12

    index, match, vlookup, array ....combining all these?

    Hi all,

    I have a spreadsheet with 2 work sheets (see attached).

    The first worksheet has the orginal data.

    In the second worksheet I am trying to determine the department and size from the monthly data in row E to AC. ie matching the values in E:AC in both worksheets to give the result.

    Example:
    if row E2:AC2 in worksheet "calculated" is available in the array on worksheet "original" E2:AC6, display the result of value B2 and C2

    Hoping this isn't too confusing, if you have a look at the spreadsheet I think you will understand what I am trying to do. Any questions let me know

    THANKS
    Hong
    Attached Files Attached Files

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: index, match, vlookup, array ....combining all these?

    Hi Hong,

    Try using below formula:-

    {=INDEX(orginal!$B$2:$C$6,MATCH(calculated!$E2&calculated!$F2&calculated!$G2&calculated!$H2&calculated!$I2&calculated!$J2&calculated!$K2&calculated!$L2&calculated!$M2&calculated!$N2&calculated!$O2&calculated!$P2&calculated!$Q2&calculated!$R2&calculated!$S2&calculated!$T2&calculated!$U2&calculated!$V2&calculated!$W2&calculated!$X2&calculated!$Y2&calculated!$Z2&calculated!$AA2&calculated!$AB2&calculated!$AC2,orginal!$E$2:$E$6&orginal!$F$2:$F$6&orginal!$G$2:$G$6&orginal!$H$2:$H$6&orginal!$I$2:$I$6&orginal!$J$2:$J$6&orginal!$K$2:$K$6&orginal!$L$2:$L$6&orginal!$M$2:$M$6&orginal!$N$2:$N$6&orginal!$O$2:$O$6&orginal!$P$2:$P$6&orginal!$Q$2:$Q$6&orginal!$R$2:$R$6&orginal!$S$2:$S$6&orginal!$T$2:$T$6&orginal!$U$2:$U$6&orginal!$V$2:$V$6&orginal!$W$2:$W$6&orginal!$X$2:$X$6&orginal!$Y$2:$Y$6&orginal!$Z$2:$Z$6&orginal!$AA$2:$AA$6&orginal!$AB$2:$AB$6&orginal!$AC$2:$AC$6,0),1)}

    See attached sample 2.xlsx

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Registered User
    Join Date
    10-18-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: index, match, vlookup, array ....combining all these?

    Hi,

    Thank you for the reply.
    I have trying to understand the formula and for some reason cant work out adjust it.

    If I simply do this =INDEX(orginal!B1:B5,MATCH(E8,orginal!E1:E5,0),1) then it calculates and matches correct, however as soon as i add in the "&" for multiple selections the formula errors out....thoughts?
    example
    =INDEX(orginal!$B$2:$C$6,MATCH(calculated!$E5&calculated!$F5&calculated!$G5,orginal!$E$2:$E$6&orginal!$F$2:$F$6&orginal!$G$2:$G$6,0),1)

    Thanks
    H

  4. #4
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: index, match, vlookup, array ....combining all these?

    Hi Hong,

    Are you entering the formula with ctrl shift enter key combination ?

    regards,
    DILIPandey

    <click on below 'star' if this helps>

  5. #5
    Registered User
    Join Date
    10-18-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: index, match, vlookup, array ....combining all these?

    hmm... to be honest I have not used CSE before. Is it simply pressing CTRL SHIFT ENTER instead of enter after you have entered in the formula above.
    Stilll does not work?

    Thanks
    Hog

  6. #6
    Registered User
    Join Date
    10-18-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: index, match, vlookup, array ....combining all these?

    I think I got it. Just applying the formula across 6000 rows and taking a very long time.

    Thank you very much for your help!

  7. #7
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: index, match, vlookup, array ....combining all these?

    Yes.. it is little time taking because the formula is looking in each sheet tab


    Regards,
    DILIPandey

    <click on below 'star' if this helps>

+ 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