+ Reply to Thread
Results 1 to 9 of 9

Using xlookup across sheets to return data based on cell

  1. #1
    Registered User
    Join Date
    02-06-2014
    Location
    Idaho
    MS-Off Ver
    M365
    Posts
    14

    Using xlookup across sheets to return data based on cell

    Now I'm not sure xlookup is the best formula for this problem but it is the closest I've gotten. Now in the attached book I have a master list of people (column A), their position (B) and how they are ranked by various sources (C through E). Additionally I have three other sheets for each position. I want to us xlookup (or whichever formula is best) to return from the master sheet each player and their ranking based on the position on that sheet (for each non-master sheet the position I want is cell A1). An example of the data I want returned is in the additional sheet "QB (Manual results I want)". So I tried to build xlookup on sheet QB in cell B3 to look like =xlookup(B2,'Master List'!C2:E2,=if('Master List'!B3=QB!A1,'Master List'!A3:E3,0),"",0,1) but most ways I tweak it I don't get any results. I know I am misusing it but I'm not sure in which step, or if I'm even using the right tool, to get the data I want without brute forcing it and manually doing it all.

    Since I rarely explain things well, I will try another explanation: I want to search the master list sheet to see if a player has the position listed in cell A1 then return the name and ranking of the player and to keep the rankings aligned by ranking sources in row 2.

    Appreciate the help and thank you.
    Attached Files Attached Files
    Last edited by maxwellsdemon13; 05-29-2022 at 09:22 AM.

  2. #2
    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,928

    Re: Using xlookup across sheets to return data based on cell

    Administrative Note:

    Members will tailor the solutions they offer to the version (NOT release number) of Office (Excel, NOT Windows) that you have. Please check that your forum profile is up-to-date in this respect. If you aren't sure, in Excel go to File | Account and report what it says below the MS logo at the top of that page. If your version is for Mac, please also state this. Thanks.
    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.

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

    Re: Using xlookup across sheets to return data based on cell

    In A3:

    =FILTER('Master List'!A3:A10,'Master List'!B3:B10=A1)

    In B3:

    =FILTER('Master List'!C3:E10,'Master List'!B3:B10=A1)
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    02-06-2014
    Location
    Idaho
    MS-Off Ver
    M365
    Posts
    14

    Re: Using xlookup across sheets to return data based on cell

    Thank you, this does solve my main issue, though I wish there were a way to match ranking sources (B2:D2) in case the order doesn't match page to page but Filter is a function I haven't used to often and does the trick, appreciate it. It is late in my time so I'll give it a test and mark it as solved in a bit, thanks again.

  5. #5
    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,928

    Re: Using xlookup across sheets to return data based on cell

    though I wish there were a way to match ranking sources (B2:D2)
    There is a way - give me five.

  6. #6
    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,928

    Re: Using xlookup across sheets to return data based on cell

    In A3:

    =FILTER('Master List'!A3:A10,'Master List'!B3:B10=A1)

    In B3 copied across and down:

    =IFERROR(INDEX('Master List'!$C$3:$E$10,MATCH($A3,'Master List'!$A$3:$A$10,0),MATCH(B$2,'Master List'!$C$2:$E$2,0)),"")
    Attached Files Attached Files

  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,928

    Re: Using xlookup across sheets to return data based on cell

    And here's an all-in-one MS365 version!

    In A3:

    =FILTER(INDEX('Master List'!A3:E10,SEQUENCE(ROWS('Master List'!A3:E10)),XMATCH(A2:D2,'Master List'!A2:E2)),'Master List'!B3:B10=A1,"No Data")

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank those who have helped you by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    02-06-2014
    Location
    Idaho
    MS-Off Ver
    M365
    Posts
    14

    Re: Using xlookup across sheets to return data based on cell

    Thanks for everything.

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

    Re: Using xlookup across sheets to return data based on cell

    You're welcome.

+ 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] How to simplify Xlookup query with data from multiple sheets
    By protexx in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-10-2021, 06:20 AM
  2. [SOLVED] XLOOKUP to return cell based on multiple criteria in single column
    By mikehay08 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-24-2021, 02:59 PM
  3. [SOLVED] Looking for a formula to return data from several sheets based on 2 criteria
    By Ranch1201 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-20-2021, 09:51 AM
  4. [SOLVED] Filter multiple sheets based on 3 criteria and return results into single cell
    By matt2877 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 01-02-2021, 12:07 AM
  5. [SOLVED] Using xlookup/vlookup formula into a validated cell to return a value into that cell
    By Questray in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 05-14-2020, 11:51 AM
  6. return values from data entry sheet to multiple sheets based a product
    By steddas in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-02-2020, 09:19 AM
  7. VBA to compare data from two sheets and return value from column based on result.
    By twanbiz in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-19-2013, 11:33 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