+ Reply to Thread
Results 1 to 78 of 78

Vlookup or formula to return a number related to a word that is typed into a cell

  1. #1
    Forum Contributor
    Join Date
    06-04-2014
    Location
    Nevada, USA
    MS-Off Ver
    2010, 2013
    Posts
    342

    Vlookup or formula to return a number related to a word that is typed into a cell

    Hi Folks,
    I have new formula or possible vlookup problem.
    Last evening, I was shown how to scan two columns for data, extract relevant data and insert the data into new cells.
    I have adjusted the formulas and inserted them onto the Excel example worksheet.
    However, now, I have a new issue involving additional data.
    The relevant columns for PLAYER 1 are from A to H and the relevant columns for PLAYER 2 are J to Q.
    The data will always be entered into these sets of columns but the number of rows may increase or decrease depending on certain information.
    In cell S1 I am going to enter a word that corresponds to a tennis surface eg Hard, Clay, I. hard, Carpet, Grass or Acrylic.
    (if you look at the spreadsheet example, some of the information has not copied correctly – it has changed some of the figures to dates – that is immaterial and of no consequence for this example).
    I need a formula that looks at what I have typed into cell S1 and then looks for the corresponding surface for PLAYER 1 and then returns the “perc. %” figure that corresponds to the surface related to PLAYER 1. ie the data in cell F34 must be returned into cell Y2.
    Likewise, the same has to be done for PLAYER 2 ie the data in cell O21 must be returned into cell Y3 for PLAYER 2.
    I hope this makes sense.
    I thank you in advance for any help or suggestions.
    Doofus.
    Attached Files Attached Files

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

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    Your choice of data layout is extremely poor and does not lend itself to data lookup and analysis.

    You would be far better off having one table for player details (one row or record per player) and another for player stats (one row per player per year). This way the lookups become simple.
    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
    Registered User
    Join Date
    12-03-2012
    Location
    CHENNAI , INDIA
    MS-Off Ver
    Excel 2007
    Posts
    93

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    Hi ,

    See the attached file.

    Four named ranges have been defined , as follows :

    Player1Percentages :
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Player2Percentages :
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Surface1 :
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Surface2 :
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    The formula to retrieve the player percentage on the selected playing surface is :

    Player1 :
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Player2 :
    Formula: copy to clipboard
    Please Login or Register  to view this content.



    Narayan
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    06-04-2014
    Location
    Nevada, USA
    MS-Off Ver
    2010, 2013
    Posts
    342

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    Hi Narayan,
    Thank you
    Almost there. However, I said that the information would not always be in the same set of rows. While the columns will remain constant, the rows will not.
    As a result, the data in AA2 does not return the correct value for this new PLAYER 1.
    I have switched the data from PLAYER 2 into the location where the data for PLAYER 1 is and vice versa - the data does not display in column AA cell 2 and 3.
    Thank you
    Doofus
    Attached Files Attached Files
    Last edited by Doofus1; 10-28-2019 at 04:52 AM.

  5. #5
    Forum Contributor
    Join Date
    06-04-2014
    Location
    Nevada, USA
    MS-Off Ver
    2010, 2013
    Posts
    342

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    Hi AliGW,
    I am copying and pasting the data from a website. That is how it appears when I paste the data into the relevant cells.
    Once the data is pasted, I want to extract certain pieces of data.
    Thank you

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

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    You would be better off reshaping the data pasted from the website into something usable (Get & Transform on the Data ribbon can help with this).

    If you follow Narayan's suggestion you are going to need to create and maintain a lot of named ranges. This will not prove practical at all.

    But it's up to you ...

    As a matter of interest, what is the website? You might be able to import directly from it using Power Query, which would save you all the copying and pasting.
    Last edited by AliGW; 10-28-2019 at 04:58 AM.

  7. #7
    Registered User
    Join Date
    12-03-2012
    Location
    CHENNAI , INDIA
    MS-Off Ver
    Excel 2007
    Posts
    93

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    Hi ,

    Two additional named ranges have been defined :

    Player1Column : =MATCH("Name: " & Sheet1!$U$2,Sheet1!$2:$2,0)

    Player2Column : =MATCH("Name: " & Sheet1!$U$3,Sheet1!$2:$2,0)

    This means you have to enter the player names in cells U2 and U3.

    The records of the two players can be in any two columns , but their names have to be in row 2 , and preceded by the label "Name: "

    The surfaces can be in any row , but they have to be in the same row as the label "year" , which in turn has to be in the player columns.

    The player percentages can be in any row , but they have to be in the same row as the label "perc. %" , which also has to be in the player columns.

    The formulae have all been changed to take these changes into account.

    Player1Percentage : =OFFSET(Sheet1!$A:$A, MATCH("perc. %",OFFSET(Sheet1!$A:$A,,Player1Column - 1), 0)-1,(Player1Column-1)+{2,3,4,5,6,7},1,6)

    Player2Percentage : =OFFSET(Sheet1!$A:$A, MATCH("perc. %",OFFSET(Sheet1!$A:$A,,Player2Column - 1), 0)-1,(Player2Column - 1) +{0,1,2,3,4,5},1,6)

    Surface1 : =OFFSET(Sheet1!$A:$A, MATCH("year",OFFSET(Sheet1!$A:$A,,Player1Column - 1), 0)-1,(Player1Column-1)+{2,3,4,5,6,7},1,6)

    Surface2 : =OFFSET(Sheet1!$A:$A, MATCH("year",OFFSET(Sheet1!$A:$A,,Player2Column - 1), 0)-1,(Player2Column - 1) +{0,1,2,3,4,5},1,6)


    Narayan
    Attached Files Attached Files

  8. #8
    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,460

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    By way of an example of a much more sensible and efficient way to proceed, I am attaching a workbook in which your data has been reshaped using Power Query.

    On sheet 2 you can see how to collate the copy and pasted data and on sheet 4 you can see the two reshaped data tables produced by Get & Transform. These can be refreshed (updated) whenever you add more data.

    These will then provide a much easier platform for your data extraction and analysis.
    Attached Files Attached Files

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

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    Solved in this thread: https://www.excelforum.com/excel-for...ent-cells.html

    Members should think twice about wasting their time posting to this thread.

  10. #10
    Forum Contributor
    Join Date
    06-04-2014
    Location
    Nevada, USA
    MS-Off Ver
    2010, 2013
    Posts
    342

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    Narayan,
    Thanks Dude.
    Much appreciated.

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

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    I take it you have no interest in the workbook I prepared for you. I hope it will be of use to someone else.

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

  12. #12
    Forum Contributor
    Join Date
    06-04-2014
    Location
    Nevada, USA
    MS-Off Ver
    2010, 2013
    Posts
    342

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    Hi AliGW,
    Sorry I didn't respond earlier.
    I do get busy with a bunch of other stuff.
    I apologize to you and anyone else I haven't responded to in a timely manner.
    Ok. So, the website is http://www.tennislive.co.uk/
    On this website, I can access web pages for each of two players who play a match.
    The pages will display on either two different tabs or two new windows.
    I don't want to flip between the tabs or the windows looking at the player information.
    It is easier to copy and paste the relevant data for both Players onto an Excel spreadsheet and then extract the information relevant to me, onto a separate part of that spreadsheet.
    However, there are a number of things I need to do - which is why I appear to be doing this piecemeal.
    So, for example, in my first posting (which I marked as Solved), I asked how to extract certain information - Name, Age, Wins and Games Played (MatchesTotal).
    Once I figured out how to do that, I moved onto the next item - which was to extract the data regarding the win percentages for a specific surface.
    However on the spreadsheet I have uploaded here, the full name of the PLAYERS does not appear in column T - in it's entirety - when I delete and enter new data profiles for other players.
    So, that party has not gone down too well.
    After that, I will need to know how to identify a players best performance surface (without me having to look at the table for each player).

    So, for instance, if I type the word "Carpet" into cell S1, in cell Y2 and Y3, it should return the win percentage for each player on that surface. (If like in the case of PLAYER 2, there is no data, cell Y2 should return "N/A".

    Then, I would need to identify the best surface on which the player has the best win percentage - Cell Z2, Z3.

    Then, I would need to identify the best win percentage figure for that surface - Cell AA2, AA3.

    Please note that the row ranges will change for each PLAYER based on how much data is available - so, for example in the uploaded file, PLAYER 2 has very limited data and as a result, there may be issues with scanning the rows and cells related to his information eg 0% may return a DIV or ERROR message etc.

    I am still wrestling with the issue of extracting the win percentage for a surface specified by me and trying to figure out why the names are not displaying correctly.
    I hope this helps you understand what I am doing.

    So, to recap, I will copy the data from any two given Player Profiles on that website (by clicking on the Player's name link) and then paste the info into A2 for Player1 all the way into column H and J2 for Player 2 all the way into column Q.
    The data I need will be extracted/returned into the specified cells.
    I will type the word that corresponds to the Surface of choice in cell S1 and the win percentages related to that will appear in the designated cell relevant to each player.
    I will then need a formula that will scan a Players best win percentage on a surface and enter the relevant Surface in one cell and the win percentage related to that in the cell next to that.

    When I am finished with those two Players, I will delete the data profile information, and copy and paste the data profiles for two new players - rinse and repeat.

    Also, for you and anyone else, If I don't respond for a while, it is because I am doing something else or not at my computer - would not, intentionally, neglect to respond to anyone.


    I have added a new Excel spreadsheet with my doodlings.

    Thank you
    Doofus.
    Attached Files Attached Files
    Last edited by Doofus1; 10-28-2019 at 09:58 PM.

  13. #13
    Forum Contributor
    Join Date
    06-04-2014
    Location
    Nevada, USA
    MS-Off Ver
    2010, 2013
    Posts
    342

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    Hi AliGW,
    The workbook cannot be used for my purpose because, with the exception of the name of each player, and the text concerning the surface type, I need to extract the numbers to carry out a few calculations.
    If you, or someone else, can hot-wire the excel worksheet I uploaded (in my reply to you above), - in the manner I want it, I'd really appreciate it.
    Again, sorry I didn't reply earlier - but I had to do stuff and then, I had to concentrate on what you had uploaded - and think it over before I responded.
    Thank you
    Doofus.

  14. #14
    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,460

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    Which numbers do you need to extract and for what calculations? Tell me exactly what you are trying to do and I can tell you how to do it.

  15. #15
    Forum Contributor
    Join Date
    06-04-2014
    Location
    Nevada, USA
    MS-Off Ver
    2010, 2013
    Posts
    342

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    Hi AliGW,
    The text and the numbers in the excel spreadsheets I have uploaded.
    I needed the name of each Player (in cells T2 and T3),
    the age of the respective players (in cells U2 and U3),
    the wins if any in cells V2 and V3(if no wins are present the designated cell should return a 0),
    the total games played by each Player in W2 and W3,
    the win percentage for the surface, that I designate in cell S1, in cells Y2 and Y3,
    the surface on which the player earned his/her best figure (that is the text - eg Clay, Grass, Acrylic etc)in cells Z2 and Z3
    [if the player has a 0% in all the fields, the cell can return a 0 or an "N/A"],
    the percentage earned for that surface in cells AA2 and AA3,
    the total Prize money earned - if any [on those web pages,at times, decimal appear to be used instead of comma's] in cells AB2 and AB3.
    If the cells can be hot-wired to pick that data up, once I copy and paste the data into the relevant cells in the designated columns - that would send me into chocolate heaven.
    Thank you
    Doofus

    PS: I will check back in around another 10 hours or so.
    Attached Files Attached Files
    Last edited by Doofus1; 10-29-2019 at 03:07 AM.

  16. #16
    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,460

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    Have a look at the attached. It's based on what you showed us in post #12, but will give you an idea of what can be done easily with sensible data processing using PowerQuery.

    It's up to you ... I'm not going to spend hours working out complex formulae so that you can use your current data layout (someone else might be prepared to) when there's this easy way to do it.

    You still haven't (I don't think) given me a link to the website - I wanted to see if we could completely automate this.

    [on those web pages,at times, decimal appear to be used instead of comma's]
    That's because the tennis world uses UK/US decimal notation, not European.

    PS: I will check back in around another 10 hours or so.
    OK, but make sure you tell me the address of that website!

    When I am finished with those two Players, I will delete the data profile information, and copy and paste the data profiles for two new players - rinse and repeat.
    This is a very STUPID idea! All you need to do is have drop-downs to select the players in the results table. I can show you how to do that. You NEVER delete your source data from a file!!! Very, very bad practice.
    Attached Files Attached Files
    Last edited by AliGW; 10-29-2019 at 03:12 AM.

  17. #17
    Registered User
    Join Date
    12-03-2012
    Location
    CHENNAI , INDIA
    MS-Off Ver
    Excel 2007
    Posts
    93

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    Quote Originally Posted by AliGW View Post
    You still haven't (I don't think) given me a link to the website - I wanted to see if we could completely automate this.
    Hi ,

    Post #12 mentions this site : http://www.tennislive.co.uk/

    Is this what you were looking for ?

    Narayan

  18. #18
    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,460

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    So it does - I missed that in all the verbosity! Thanks, Narayan.

  19. #19
    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,460

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    The good news is that it's really easy to import player match stats into Excel using Power Query directly from the website. I am not sure how to import the player personal details, but I'll put a call out to our PQ expert, Olly.

  20. #20
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    Here's a query which pulls the data you want, for two specified player names, and a specified surface.

    Please Login or Register  to view this content.

    I've set it up to get the surface / player names from named ranges on your worksheet, so enter the required values (in the yellow cells) then refresh the data, and it will pull the data you want.
    Attached Files Attached Files
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  21. #21
    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,460

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    Thanks, Olly - can't wait to have a play with this!

    Let's hope Doofus1 will see its worth.

  22. #22
    Forum Contributor
    Join Date
    06-04-2014
    Location
    Nevada, USA
    MS-Off Ver
    2010, 2013
    Posts
    342

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    Hi Ali GW,
    The website is http://www.tennislive.co.uk/
    Hahaha. I know that I am dumber than Gump. But I would clear the contents in columns A through Q, - then copy from the website and paste into the relevant columns/rows on the spreadsheet.
    The data I want would be extracted onto the cells in columns U through AB.
    I would also enter the surface I want to check on, in cell S1 - and the relevant data would appear in the designated cells.
    Thank you
    Last edited by Doofus1; 10-29-2019 at 06:37 PM.

  23. #23
    Forum Contributor
    Join Date
    06-04-2014
    Location
    Nevada, USA
    MS-Off Ver
    2010, 2013
    Posts
    342

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    Hi Narayan,
    Thank you.

  24. #24
    Forum Contributor
    Join Date
    06-04-2014
    Location
    Nevada, USA
    MS-Off Ver
    2010, 2013
    Posts
    342

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    Thank you Sir.
    This is way beyond the mental capabilities of my impaired brain cell.

  25. #25
    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,460

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    Quote Originally Posted by Doofus1 View Post
    Thank you Sir.
    This is way beyond the mental capabilities of my impaired brain cell.
    But it is exactly what you wanted and, indeed, described in post #22, except it needs no copying and pasting.

  26. #26
    Forum Contributor
    Join Date
    06-04-2014
    Location
    Nevada, USA
    MS-Off Ver
    2010, 2013
    Posts
    342

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    Now comes the fun part.
    Since you are trying to turn me into a Power Query Junkie, give me some time to Google/YouTube Power Queries.
    But I have seen the light - on the excel spreadsheet you created - especially the results page.
    The question is, how do I bring the data in - on to the Raw Data page - am I copying and pasting or am I missing a great deal?
    Thank you
    Doofus.
    Last edited by Doofus1; 10-29-2019 at 07:23 PM.

  27. #27
    Forum Contributor
    Join Date
    06-04-2014
    Location
    Nevada, USA
    MS-Off Ver
    2010, 2013
    Posts
    342

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    Hi Olly,
    I probably don't understand - but am I supposed to enter the names in cells A2 and A3 - an the data will be pulled from the website http://www.tennislive.co.uk/ into the cells in columns C through K?
    Thank you

  28. #28
    Forum Contributor
    Join Date
    06-04-2014
    Location
    Nevada, USA
    MS-Off Ver
    2010, 2013
    Posts
    342

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    Hi Olly,
    Your spreadsheet looks exactly like how I'd like to see things but -
    How to I get the data from the website onto these two rows?
    I have never used a Power Query.
    I watched a couple of Youtube Vids and tried going to the Data tab and selected the FROM WEB option.
    A box appeared. I entered the http://www.tennislive.co.uk address and selected OK.
    A navigator box opened up. Nothing happened. I changed the tab to WEB VIEW.
    A tennislive.uk page appeared I clicked on a players name and tried to load it - an new excel sheet opened but it didn't have what I wanted.
    Needless to say, in more competent hands, this would go down like a treat.
    I need some directions - please.
    I think you have given a Ferrari to a guy who is still using training wheels on a tricycle.
    AliGW or anyone else is welcome to offer suggestions
    Thank you

    PS: I will be back in a couple of hours.

  29. #29
    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,460

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    OK, so in Olly's absence:

    1. Alter any of the details in cells A1, A2 or A3 (we can make these drop-down selection boxes if you wish).
    2. Go to the Data tab and click on the Refresh button - the query will take a moment to refresh and you will see the updated data direct from the website in the table.

    If you wanted, we could add a bit of VBA code to have the query refresh each time you change any of the cells A1 to A3, if you wished.

    There is no need to download data from the site and this means your data is never out of date.

    PS You may need to click on Enable Content in the yellow bar at the top when you open the workbook.
    PPS You do not need to delve into the query itself at all.
    Last edited by AliGW; 10-30-2019 at 01:59 AM.

  30. #30
    Forum Contributor
    Join Date
    06-04-2014
    Location
    Nevada, USA
    MS-Off Ver
    2010, 2013
    Posts
    342

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    Sorry Folks,
    I just don't get how to use Olly's Excel file.
    I watched his video and a couple of others - but I don't see how I can produce his results.
    In addition, I am now on computer with an Excel 2010 - as opposed to a 2016 or a 2019.
    Any suggestions anyone ? (and keep the suggestions PG).

  31. #31
    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,460

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    The fact that you are using 2010 means that you need to download and install the free PowerQuery add-in. Here's how to do that: https://www.excelcampus.com/install-power-query/

    Once you have the add-in, you should be good to go.

  32. #32
    Forum Expert
    Join Date
    09-30-2019
    Location
    Chiangmai, Thailand
    MS-Off Ver
    Office 2016, Excel 2019
    Posts
    1,234

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    Please try.

    Y2
    Please Login or Register  to view this content.
    Y3
    Please Login or Register  to view this content.
    Y3 (avoid header in same row)
    Please Login or Register  to view this content.
    Regards.
    Last edited by menem; 10-30-2019 at 02:48 AM.

  33. #33
    Forum Contributor
    Join Date
    06-04-2014
    Location
    Nevada, USA
    MS-Off Ver
    2010, 2013
    Posts
    342

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    Thanks AliGW.
    Just downloaded and will try again.
    Was on a 2019 earlier but a 2010 right now.

  34. #34
    Forum Contributor
    Join Date
    06-04-2014
    Location
    Nevada, USA
    MS-Off Ver
    2010, 2013
    Posts
    342

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    Hi Menem,
    I will try this after I try the Power Query
    It's always good to have alternatives.
    Thank you

  35. #35
    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,460

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    Quote Originally Posted by Doofus1 View Post
    Thanks AliGW.
    Just downloaded and will try again.
    Was on a 2019 earlier but a 2010 right now.
    Have you changed the details in your forum profile since we started this thread? If so, that is where the confusion has arisen.

  36. #36
    Forum Contributor
    Join Date
    06-04-2014
    Location
    Nevada, USA
    MS-Off Ver
    2010, 2013
    Posts
    342

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    Nope. Never changed anything - at least not knowingly. Wouldn't know where to go make changes to my profile.
    If you are talking about versions of Excel, I check in from a number of computers -mainly work and home.
    The work computers have the latest versions. At home I am low tech.
    However, you and Olly have created a monster.
    It is alive!!!
    THANK YOU!!!

    PS - I would like to keep this tread open a little longer while I test my new toy.
    No more than a day - in case I have to bug y'all.
    And I will be back for more.

  37. #37
    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,460

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    That's good!

    Have a look at the attached version - I have updated it with drop-down selection lists (using the ATP list from the website). This also updates when you refresh queries.
    Attached Files Attached Files

  38. #38
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    You missed out the women, Ali

  39. #39
    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,460

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    Yes, I did, although they can easily be added from the WTA table if necessary and the lists merged.

  40. #40
    Forum Contributor
    Join Date
    06-04-2014
    Location
    Nevada, USA
    MS-Off Ver
    2010, 2013
    Posts
    342

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    I prefer the WTA - my assessment is that they are more consistent. That is part of what I am trying to prove.

  41. #41
    Forum Contributor
    Join Date
    06-04-2014
    Location
    Nevada, USA
    MS-Off Ver
    2010, 2013
    Posts
    342

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    Thanks again Olly.
    I am going to ask you teach me how to do what you did - I don't understand it yet. But the toy is working like a charm.

  42. #42
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    Adapting Ali's code a little, to include ATP and WTA top ranked players:

    Please Login or Register  to view this content.

  43. #43
    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,460

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    I am so glad we have converted you to the wonders of PQ - it really is a Pandora's Box of tricks.

  44. #44
    Forum Contributor
    Join Date
    06-04-2014
    Location
    Nevada, USA
    MS-Off Ver
    2010, 2013
    Posts
    342

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    I am going to OD on Power Queries.
    It is starting to make my head spin with possibilities.

    Going to log off now. Be back in about 10 hours.

  45. #45
    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,460

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    Sweet PQ dreams!!! LOL!

  46. #46
    Forum Contributor
    Join Date
    06-04-2014
    Location
    Nevada, USA
    MS-Off Ver
    2010, 2013
    Posts
    342

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    Hi Olly,
    They all work like clockwork.
    I noticed that in a few instances, the data needs to be refreshed multiple times for it to populate into the cells. This is not an issue.
    However, I have uploaded an Excel file that has a name that does not populate - even after multiple attempts.
    Is it because of something I might be doing wrong ? I have copied and typed the name in and then, hit refresh. It still does not populate.
    Any chance you could look at it and offer a suggestion(s)?
    Thank you
    Doofus.
    Attached Files Attached Files

  47. #47
    Forum Contributor
    Join Date
    06-04-2014
    Location
    Nevada, USA
    MS-Off Ver
    2010, 2013
    Posts
    342

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    Hi AliGW,
    I have more questions.
    1. How do you know if a website is Power Query compatible?
    Here are two website addresses - from which I'd like to access data onto Power Query tables - like the ones you created.

    https://www.nfl.com/standings/conference/2019/REG

    https://www.soccerstats.com/leagues.asp

    Same website as above, different page
    https://www.soccerstats.com/widetabl...league=england


    I want to learn how to create the Power Queries for these types of websites - because, being a sports fanatic, this will help me to understand Power Queries.
    I will ask questions as I learn to create the queries myself - hope you have the patience to indulge my asinine questions.
    This is what happens when you teach children magic tricks.
    Thank you
    Last edited by Doofus1; 10-30-2019 at 08:23 PM.

  48. #48
    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,460

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    Any chance you could look at it and offer a suggestion(s)?
    I suggest you use my last version of the file, which contains drop-down selection boxes. I have updated it to include the WTA list as per Olly's code above and attached it again here.

    How do you know if a website is Power Query compatible?
    Quickest way is to see what you are offered when you try to import it. I will talk you through how to do this shortly.
    Attached Files Attached Files
    Last edited by AliGW; 10-31-2019 at 03:11 AM.

  49. #49
    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,460

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    OK, so the NFL site will be accessible, but the 2019 and REG bits of the URL control selection boxes on the website, so Olly will need to advise you how to deal with this aspect of the address (they need to be dealt with as parameters). Similarly with the soccer site - because you are specifying choices via the website, these need to be built into the query that you build.

    Essentially any website that contains tabular data can be imported (i.e. the data in the table).

  50. #50
    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,460

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    I will ask questions as I learn to create the queries myself - hope you have the patience to indulge my asinine questions.
    This is a help forum, and no question is stupid if you need to ask it - how else would you learn?

    Don't put yourself down. You will learn this, just as I and Olly did, but it may take a while to unlock the full potential. Olly's much further on with it than I am, obviously.

    Your forum name, containing 'doof' (stupid in German), seems to be self-deprecating in itself: I always tell my pupils that they CAN do anything.

  51. #51
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    Quote Originally Posted by Doofus1 View Post
    However, I have uploaded an Excel file that has a name that does not populate - even after multiple attempts.
    Is it because of something I might be doing wrong ? I have copied and typed the name in and then, hit refresh. It still does not populate.
    That's because the player page url for "Lloyd Harris" is http://www.tennislive.co.uk/atp/lloy...irhead-harris/ for some reason. So if you enter the name "Lloyd George Muirhead Harris" it will retrieve the details.

    There may be a workaround to this, by retrieving the player list first, and associating actual player page URLs with player names, instead of the current assumption that player page urls are all in the format firstname-lastname.

  52. #52
    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,460

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    Olly - did you see posts #47 and #49? I was hoping you could refresh my memory on how to handle these web page choices.

  53. #53
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    Aye. I'll try and have a look later, in between meetings!

  54. #54
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    I will point out, though, that the NFL terms of service include:
    "Systematic retrieval of data or other content from the Services, whether to create or compile, directly or indirectly, a collection, compilation, database or directory, is prohibited absent our express prior written consent."

    And the SoccerStats Terms and Conditions of Use include:
    "You must not conduct any systematic or automated data collection activities such as scraping, data mining and data extraction on the Website. "

  55. #55
    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,460

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    That's a good point, Olly, regarding the T&Cs. Perhaps better not encourage this, then.

  56. #56
    Forum Contributor
    Join Date
    06-04-2014
    Location
    Nevada, USA
    MS-Off Ver
    2010, 2013
    Posts
    342

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    Thank you.
    But now, I am hooked on this. I did not know this was possible.
    I am juggling work, and my private hobby of analyzing sports data.
    I reiterate - that if I don't respond quickly, it is either because of my slow mental metabolism or because I am busy with work and other responsibilities.
    May I keep this thread open - because I will have many questions regarding this topic ?

  57. #57
    Forum Contributor
    Join Date
    06-04-2014
    Location
    Nevada, USA
    MS-Off Ver
    2010, 2013
    Posts
    342

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    Thanks Olly,
    Good to know.
    Other than that, it works really well.

  58. #58
    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,460

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    I think it might be better to mark it as solved. If you have queries about PQ going forward, you can start a new thread with a suitable title.

  59. #59
    Forum Contributor
    Join Date
    06-04-2014
    Location
    Nevada, USA
    MS-Off Ver
    2010, 2013
    Posts
    342

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    Ok. Marked as SOLVED.
    However, which Forum category do I ask future Power Query questions under ?
    Thank you

  60. #60
    Forum Contributor
    Join Date
    06-04-2014
    Location
    Nevada, USA
    MS-Off Ver
    2010, 2013
    Posts
    342

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    Hi Olly,
    There is a change I want to make to the code? of what you created.
    In cell A1 i have to enter the surface for today's contest.
    If I forget to change the word, that signifies the surface, the wrong figures will be imported onto the excel sheet.
    Thus, would it be possible to redo this, excellent, spreadsheet - to automatically include today's surface into the relevant cells. in a column, that you would have to insert between columns G and H?
    I have uploaded 4 screenshots and two versions of your spreadsheet - 1 for Excel 2010 (TennisPQ11) and another for 2016 (TennisPQ17).
    The addition will also help me better understand what you have written -eg I will compare your original code to the altered code.
    At present I am digesting your work slowly.
    I hope I am making sense.
    I will log back in in about three hours (in case you reply to this post)
    Thank you
    Attached Files Attached Files

  61. #61
    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,460

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    How are you expecting this to work? In the PDF example, each of the players is playing on a different surface today, so which of the two do you want to compare and to have appear in A1?

    Out of interest, why are you not using the version that I created with the drop-down selectors for the players?
    Last edited by AliGW; 11-01-2019 at 01:41 AM.

  62. #62
    Forum Contributor
    Join Date
    06-04-2014
    Location
    Nevada, USA
    MS-Off Ver
    2010, 2013
    Posts
    342

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    Hi AliGW,
    The PDF was supposed to be an example of where today's surface would appear on the web page (as in, you have to click on a players name to get the player's profile page and, on the profile page, you see his/her most recent or upcoming match and, on the far right side for that line of data, you see today's surface).
    I wanted to know if Ollie could incorporate it (today's surface) into the page he created so that today's surface is automatically identified and appears on the spreadsheet (he created) - as a new column between G and H (thereby pushing column H to become column I etc)
    I am not using the web pages. I guess I am not articulating matters correctly.
    My point with the earlier post to Ollie was that, if he could do that, I wanted to see where he incorporated that information into the code he wrote.
    As for the spreadsheet you created, looking at it, I thought i developed diabetes - you gave me a sugar rush and more ideas than I could articulate.
    I am meditating on it. So be patient. I can only play with one toy at a time.
    First Olly's toy.
    They I want to recreate those other websites using your format.
    Thank you

  63. #63
    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,460

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    OK - so assuming that only one of the two players is playing today - what then? Getting today's surface is not going to be too difficult, I think, but you need to think this through.

    As for my version of the workbook, it only differed in having the drop-down lists - not a massive difference. On reflection, because of the names issue you identified, the drop-down lists won't always work, so it might not be worth bothering with it.
    Last edited by AliGW; 11-01-2019 at 03:14 AM.

  64. #64
    Forum Contributor
    Join Date
    06-04-2014
    Location
    Nevada, USA
    MS-Off Ver
    2010, 2013
    Posts
    342

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    Hi AliGW,
    The two players will always play on the same surface.
    Because on the website http://www.tennislive.co.uk/ I would only look at the scheduled matches or the finished matches. (the two players selected would have always played against each other on the same surface).
    Thus, The two players whose data is extracted on to the spreadsheet would have always played on the same surface.
    The problem, for me, would be when I forget to change the surface in cell A1.
    When that happens, I may be looking at data for two players for a match on Grass - when it should be on a Hard court.
    So, to avoid that mistake, I would like to see how the surface (for today's match or the finished match) for the two players can be extracted onto the spreadsheet automatically to avoid my absent minded negligence.

    I will come to your spreadsheets in a little while - they hold a whole different world of possibilities.
    For now, I don't want to get ahead of myself - baby steps.
    But if it isn't possible that's ok too. I will have to be more mindful while I experiment.
    Thank you
    Logging off - be back in about 10 hours.
    Last edited by Doofus1; 11-01-2019 at 04:28 AM.

  65. #65
    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,460

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    Yes - I understand. I can see in the code on the site where the information is, but I don't know how to extract it. I am sure that Olly will let us know when he calls in here later today.

  66. #66
    Forum Contributor
    Join Date
    06-04-2014
    Location
    Nevada, USA
    MS-Off Ver
    2010, 2013
    Posts
    342

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    Thanks AliGW.
    Gonna log off now. Bed time for Bonzo.

  67. #67
    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,460

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    Where in the world are you? It's breakfast time here.

  68. #68
    Forum Contributor
    Join Date
    06-04-2014
    Location
    Nevada, USA
    MS-Off Ver
    2010, 2013
    Posts
    342

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    Out in California with very irregular sleep habits.

  69. #69
    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,460

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    I see! I'm going to temporarily remove the SOLVED tag here in the hope that Olly spots it.

  70. #70
    Forum Contributor
    Join Date
    06-04-2014
    Location
    Nevada, USA
    MS-Off Ver
    2010, 2013
    Posts
    342

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    Thanks, AliGW.
    Will log back in in a few hours.

  71. #71
    Forum Contributor
    Join Date
    06-04-2014
    Location
    Nevada, USA
    MS-Off Ver
    2010, 2013
    Posts
    342

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    Hi Olly,
    I apologize for not responding to this post. I did not read it correctly.
    Your quote referencing the website:
    I will point out, though, that the NFL terms of service include:
    "Systematic retrieval of data or other content from the Services, whether to create or compile, directly or indirectly, a collection, compilation, database or directory, is prohibited absent our express prior written consent."
    Yes, understood. However, my interest is to learn to use Power Query - using this type of website.
    I have no desire to use it's data for anything other than my training purposes.
    Thus, I will look for another site(s) that does not make statements of this nature.

    In the meantime, could you show me the code for incorporating the "today's surface" into the code you originally created?

    Again, this is not being used for any illegal purposes.
    I am a sports enthusiast and an excel user who gets assigned crazy projects at work - I use sports analogies, websites etc to illustrate issues.
    I hope this makes sense.
    Thank you

  72. #72
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    Here's a pretty rough amendment, which retrieves the "Scheduled / Last" surface for each player. If this is not available, it returns null for Surface and Surface Win %.

    Please Login or Register  to view this content.
    Am pretty sure I could work out a neater way of getting to the Scheduled / Last Surface, but don't really have much time to look at it today...!

  73. #73
    Forum Contributor
    Join Date
    06-04-2014
    Location
    Nevada, USA
    MS-Off Ver
    2010, 2013
    Posts
    342

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    Hi Olly,
    Sorry I did not respond earlier.
    Thank you for the code. I really appreciate this.
    I am going to pour over this code - the only "code"I know is basic Excel formulas.
    As a result, I will have more questions about how you do this type of data extraction.
    Again, I wish to reiterate/repeat that none of this information is in any way used for anything other than my personal inquiry and amusement.
    I do a fair amount of research - often work related - and finding new ways (for me) to solve my issues is a pleasure.
    Once you and AliGW made me aware of what could be done with a Power Query, I became fairly excited and it set my mind racing.
    Being a sports junkie, I wanted to learn how to extract the data form sites ranging from Soccer, to Baseball, to Cricket to Rugby, American Football etc - well you get the picture. The disclaimer you drew my attention to - never entered my mind.
    Thank you
    Doofus.

  74. #74
    Forum Contributor
    Join Date
    06-04-2014
    Location
    Nevada, USA
    MS-Off Ver
    2010, 2013
    Posts
    342

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    This works well.
    Do you recommend any good books on learning to code the way you wrote this code?
    Thank you

  75. #75
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    No books (although I do recommend Marco Russo's Definitive Guide to DAX, when you move to Power Pivot) - but I do recommend reading;

    Last edited by Olly; 11-05-2019 at 04:19 AM.

  76. #76
    Forum Contributor
    Join Date
    06-04-2014
    Location
    Nevada, USA
    MS-Off Ver
    2010, 2013
    Posts
    342

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    Hi Olly,
    You created this spreadsheet, some time ago, for me.
    This is a Powerquery spreadsheet onto which I could extract data from the website http://www.tennislive.co.uk/
    I used to be able to extract data for male and/or female players onto the sheet.
    However, it appears to have stopped working for the female players.
    It only seems to extract the data for the males.
    I wanted to create this to test a hypothesis that female players were as consistent as the males.
    Anywho, could you take a look at the M code and tell me why it is no longer picking up the data for the females?
    Or offer a fix or solution?
    Thank you
    Doofus
    Attached Files Attached Files
    Last edited by Doofus1; 12-08-2020 at 02:30 AM.

  77. #77
    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,460

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    The issue is completely different to the original thread title.

    Please remark this thread as solved, then open a new one with an appropriate PQ related title, and include a link back to this thread.

    Thanks.

  78. #78
    Forum Contributor
    Join Date
    06-04-2014
    Location
    Nevada, USA
    MS-Off Ver
    2010, 2013
    Posts
    342

    Re: Vlookup or formula to return a number related to a word that is typed into a cell

    Hi AliGW.
    Will do.
    Thank you
    Doofus

+ 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] Formula Help Pls - Search cell for WORD, return fields from WORD lookup
    By tomski777 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-17-2017, 12:02 AM
  2. Delete entire row when specifc word is typed into a cell in that row
    By d41 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-14-2016, 10:05 AM
  3. Replies: 3
    Last Post: 01-27-2014, 07:17 AM
  4. [SOLVED] Find match, find related cell and return that number
    By HelpHelpHelp in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-17-2012, 06:46 AM
  5. Search Typed String and paste related content
    By deksiberu in forum Excel General
    Replies: 25
    Last Post: 04-13-2011, 10:33 PM
  6. Replies: 3
    Last Post: 06-22-2005, 07:05 PM
  7. [SOLVED] copy a number typed in a cell to another & change it to word form.
    By ex:1 in a cell = one in a different cell in forum Excel General
    Replies: 1
    Last Post: 04-20-2005, 04:06 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