+ Reply to Thread
Results 1 to 10 of 10

Advanced Match & Index

  1. #1
    Registered User
    Join Date
    12-14-2015
    Location
    Cairo,Egypt
    MS-Off Ver
    2013
    Posts
    19

    Advanced Match & Index

    Dears,

    Kindly i need your Support for this Excel Sheet

    I wanna when I change the manager name at cell "B4" the stores which belong to it changes at the belwo table automaticlly from stores data at sheet2.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: Advanced Match & Index

    In B7

    =IFERROR(INDEX(Sheet2!A$3:A$22,SMALL(IF(Sheet2!$C$3:$C$22=Sheet1!$B$4,ROW(Sheet2!$B$3:$B$22)-ROW(B2)+1,""),ROWS($B$3:B3))),"")

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

    Copy across and down

    B4 must be name only (no ":-" added)

    Make B4 a drop-down list of names

  3. #3
    Registered User
    Join Date
    12-14-2015
    Location
    Cairo,Egypt
    MS-Off Ver
    2013
    Posts
    19

    Re: Advanced Match & Index

    Thanks alot but it was working only on the test sheet but not working at the main sheet even after editing the new rang

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: Advanced Match & Index

    If it works on the test, it works: you don't say why it does not work.

    Attach a sample workbook [that does not work].(not image).

    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate.

    Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  5. #5
    Registered User
    Join Date
    12-14-2015
    Location
    Cairo,Egypt
    MS-Off Ver
    2013
    Posts
    19

    Re: Advanced Match & Index

    Thanks a million Mr. JohnTopley for your support but it works on test sheet but with no correct output as an attached file.
    Attached Files Attached Files

  6. #6
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Advanced Match & Index

    Try

    B7
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,875

    Re: Advanced Match & Index

    In B7, this array (C+S+E) formula:

    =IFERROR(INDEX(Sheet2!A$3:A$22,SMALL(IF(Sheet2!$C$3:$C$22=Sheet1!$B$4,ROW(Sheet2!$B$3:$B$22)-ROW(B$2),""),ROWS($B$3:B3))),"")

    In C7, this regular formula:

    =IFERROR(VLOOKUP(B7,Sheet2!$A$3:$B$22,2,0),"")

    Copy both down.
    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 Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: Advanced Match & Index

    My typo ..sorry ...

    =IFERROR(INDEX(Sheet2!A$3:A$22,SMALL(IF(Sheet2!$C$3:$C$22=Sheet1!$B$4,ROW(Sheet2!$B$3:$B$22)-ROW($B$3)+1,""),ROWS($B$3:B3))),"")

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

  9. #9
    Registered User
    Join Date
    12-14-2015
    Location
    Cairo,Egypt
    MS-Off Ver
    2013
    Posts
    19

    Re: Advanced Match & Index

    Thanks For Your Support Mr. John

  10. #10
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,875

    Re: Advanced Match & Index

    Thanks for the rep.!

+ 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] Cant get advanced Lookup using INDEX & MATCH functions
    By virtualcircus in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-16-2017, 08:08 AM
  2. Advanced Index/Match Functions
    By Frog85 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-07-2016, 12:27 AM
  3. Advanced INDEX/MATCH Formula - is this possible?
    By h2holbro22 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-29-2016, 01:42 AM
  4. Advanced If or Match(index) vba... not really sure.
    By TexasBobcat in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-04-2015, 03:09 PM
  5. [SOLVED] Advanced Match Help (possibly Index Match)
    By dfxryanjr in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-08-2013, 09:13 AM
  6. advanced lookup/index-match problem
    By tx12345 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-11-2006, 12:40 PM
  7. advanced lookup/index-match problem
    By tx12345 in forum Excel General
    Replies: 1
    Last Post: 08-10-2006, 11:50 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