+ Reply to Thread
Results 1 to 13 of 13

Extracting Data from Multiple Worksheets

  1. #1
    Registered User
    Join Date
    12-05-2020
    Location
    Edinburgh, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    32

    Question Extracting Data from Multiple Worksheets

    Here I am again asking for help. Each time I have came here for assistance my issue has been resolved so I am feeling optimistic. I pretty sure my question should be easy to answer all you excel experts on here.

    So, I am currently working on a doc for UFC fighters with multiple tabs. The Data tab is where I input the all fighter results with a certain scoring criteria for each fight. Other tabs include, Stats, Fighter Search, and updated rankings from each division (1 tab for each division). The data from these rankings tabs are extracted from Wikipedia.com.

    What I am struggling with is adding a ranking column to my data tab in column A. I would like to extract the rankings from from the rankings tabs to the corresponding fighter in the data tab. For those fighters that aren't ranked (the majority) I would for it to display "-". Hopefully this makes sense.

    As you can see I have tried INDEX, MATCH formula but it has only worked for the flyweight division fighters and an error occurs for the fighters that are ranked in the other divisions. I assume there is a simple way of doing this but I am can't figure it out.

    Please have a look at my spreadsheet attached to have a better understanding of my problem. I realise that the spreadsheet isn't perfect but it is a work in progress.

    Just to clarify. I would like Column A in the data tab to show the ranking of each fighter (if any) which can be found in Column A on tabs Flyweight - Woman's Bantamweight. For those who are ranked I would like it show their ranking (e.g. C for champion or 1-15) and for those that aren't ranked "-".

    **My file has failed to upload. I assume its' because it's too big. I will create a smaller sample doc. In the meantime if anyone can help without needing to see my doc then that would be amazing!!**

    ***NEW SAMPLE FILE NOW ADDED*** It is a rather simplistic version of the original but should be enough. Column A on Sheet 1 is where I would like the new formula. So the first few cells should equal...
    A2 = 4
    A3 = 12
    A4 = 1
    A5 = 10
    A6 = 3
    A7 = 3
    A8 = 10
    A9 = C
    A10 = 1
    A11 = 12
    A12 = -

    Hopefully this all makes sense.

    Thanks in advance.
    Attached Files Attached Files
    Last edited by speedychaz94; 01-22-2021 at 04:45 PM. Reason: Sample file now attached

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Extracting Data from Multiple Worksheets

    You have to be kidding!! we need to see the file. The filessize limit for .xlsx if 1 Mb. As a .zip or .xlsb it is much higher.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Registered User
    Join Date
    12-05-2020
    Location
    Edinburgh, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    32

    Re: Extracting Data from Multiple Worksheets

    Quote Originally Posted by Glenn Kennedy View Post
    You have to be kidding!! we need to see the file. The filessize limit for .xlsx if 1 Mb. As a .zip or .xlsb it is much higher.
    Yip if you have read you would see that I am going to make a smaller sample file. I will update this post with the new file ASAP.

    cheers

  4. #4
    Registered User
    Join Date
    12-05-2020
    Location
    Edinburgh, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    32

    Re: Extracting Data from Multiple Worksheets

    Quote Originally Posted by speedychaz94 View Post
    Yip if you have read you would see that I am going to make a smaller sample file. I will update this post with the new file ASAP.

    cheers
    File now attached to post.

  5. #5
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2504
    Posts
    19,389

    Re: Extracting Data from Multiple Worksheets

    My suggestion is to utilize Get and Transform to produce a single table (AllClassifications) using the following advanced editor code:
    Please Login or Register  to view this content.
    The formula that finds the ranking is: =IFERROR(INDEX(AllClassifications[Rank],MATCH(B2,AllClassifications[Fighter],0)),"-")
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  6. #6
    Registered User
    Join Date
    12-05-2020
    Location
    Edinburgh, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    32

    Re: Extracting Data from Multiple Worksheets

    Quote Originally Posted by JeteMc View Post
    My suggestion is to utilize Get and Transform to produce a single table (AllClassifications) using the following advanced editor code:
    Please Login or Register  to view this content.
    The formula that finds the ranking is: =IFERROR(INDEX(AllClassifications[Rank],MATCH(B2,AllClassifications[Fighter],0)),"-")
    Let us know if you have any questions.
    Hi thanks for the help.

    This worked in the sample doc that I created. However whenever I try and create the table using power query advanced editor, on my original document, I get an error message saying [Expression Error] We couldn't find an Excel table named 'Data!_FilterDatabase'.

    Any suggestions on what to do?

    Many thanks,

  7. #7
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2508 Win 11
    Posts
    24,957

    Re: Extracting Data from Multiple Worksheets

    Change the table name in the PQ Editor to whatever you named your table. Possibly Table 1?
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  8. #8
    Registered User
    Join Date
    12-05-2020
    Location
    Edinburgh, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    32

    Re: Extracting Data from Multiple Worksheets

    Quote Originally Posted by alansidman View Post
    Change the table name in the PQ Editor to whatever you named your table. Possibly Table 1?
    Hi thanks for the message.

    I created a table from blank query so I haven't previously named a table. I hope that makes sense?

    Let me know if you have any other suggestions.

    Cheers
    Last edited by speedychaz94; 01-21-2021 at 06:35 PM.

  9. #9
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2504
    Posts
    19,389

    Re: Extracting Data from Multiple Worksheets

    If you didn't name the query table, I imagine that Excel named it "Query 1". If so put that in the place of "AllClasifications" in the #"Filter Rows" line.
    If that doesn't work then I suggest uploading a sample of the workbook wherein the error is occurring.

  10. #10
    Registered User
    Join Date
    12-05-2020
    Location
    Edinburgh, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    32

    Re: Extracting Data from Multiple Worksheets

    Quote Originally Posted by JeteMc View Post
    If you didn't name the query table, I imagine that Excel named it "Query 1". If so put that in the place of "AllClasifications" in the #"Filter Rows" line.
    If that doesn't work then I suggest uploading a sample of the workbook wherein the error is occurring.
    Unfortunately still doesn't work I am afraid. Same error. My file is too big to post on here and I don't know if I can replicate the error if I produce a sample. The sample I made before worked. Here is a link to my excel file, just download it and you should be able to view it properly.

    https://www.dropbox.com/s/4dvccj6n28...w%29.xlsx?dl=0

    Thanks for the help.

  11. #11
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2504
    Posts
    19,389

    Re: Extracting Data from Multiple Worksheets

    Made a modification to the code:
    Please Login or Register  to view this content.
    The formula for column A on the Data sheet is: =IFERROR(INDEX(AllClassifications[Rank],MATCH(B5,AllClassifications[Fighter],0)),"-")
    Let us know if you have any questions.

  12. #12
    Registered User
    Join Date
    12-05-2020
    Location
    Edinburgh, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    32

    Re: Extracting Data from Multiple Worksheets

    Quote Originally Posted by JeteMc View Post
    Made a modification to the code:
    Please Login or Register  to view this content.
    The formula for column A on the Data sheet is: =IFERROR(INDEX(AllClassifications[Rank],MATCH(B5,AllClassifications[Fighter],0)),"-")
    Let us know if you have any questions.
    Bingo!! This worked, great help.
    Thank you for your time.

    Kind regards

  13. #13
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2504
    Posts
    19,389

    Re: Extracting Data from Multiple Worksheets

    You're Welcome. Thank You for the feedback and for marking the thread as 'Solved'. I hope that you have a blessed day.

+ 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] Extracting Matching Data from Multiple Worksheets
    By micky007 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-01-2020, 11:47 AM
  2. Macro for extracting data from multiple worksheets from multiple workbooks
    By Piulitsa in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-09-2018, 02:50 PM
  3. [SOLVED] Extracting Data from Multiple Worksheets
    By andrewc in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-03-2018, 09:04 AM
  4. Extracting data from multiple worksheets
    By logisticsexcel in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-22-2016, 07:37 AM
  5. Extracting data from multiple worksheets
    By karstens in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-27-2005, 03:16 AM
  6. Extracting data from multiple worksheets IF
    By mnfp in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-20-2005, 12:15 AM
  7. Extracting data from multiple worksheets IF
    By mnfp in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-19-2005, 11:41 PM

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