+ Reply to Thread
Results 1 to 46 of 46

VLOOKUP and search name

  1. #1
    Registered User
    Join Date
    03-31-2016
    Location
    Berlin
    MS-Off Ver
    2013
    Posts
    41

    VLOOKUP and search name

    In tab1 there are 3 tables i would like to extract from tab1 some data to tab 2

    tab1 under Form: Last 6 matches (GP W D L GF GA GD Pts ) to be extracted to tab 2 in Form: Last 6 matches (GP W D L GF GA GD Pts )

    tab1 under Form: Last 8 matches (GP W D L GF GA GD Pts ) to be extracted to tab 2 in Form: Last 8 matches (GP W D L GF GA GD Pts )

    tab1 under Form: Last 10 matches (GP W D L GF GA GD Pts ) to be extracted to tab 2 in Form: Last 10 matches (GP W D L GF GA GD Pts )

    I can use the VLOOKUP but the data in tab are getting biger day by day and the VLOOKUP will at some stage not work anymore.

    Thanks in advance for your support.
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,622

    Re: VLOOKUP and search name

    Are you still using Excel 2013?
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    03-31-2016
    Location
    Berlin
    MS-Off Ver
    2013
    Posts
    41
    Quote Originally Posted by TMS View Post
    Are you still using Excel 2013?
    Unfortunately still using Excel 2013, i can not afford newer version :-(

  4. #4
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: VLOOKUP and search name

    Please add manual some expected results and explain if neccessary how you derive these results

  5. #5
    Registered User
    Join Date
    03-31-2016
    Location
    Berlin
    MS-Off Ver
    2013
    Posts
    41
    Quote Originally Posted by HansDouwe View Post
    Please add manual some expected results and explain if neccessary how you derive these results
    Sorry i do not understand, can you please elaborate more, thanks

  6. #6
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: VLOOKUP and search name

    You expect on sheet loopup&results results.
    Please add manually some expected results and explain how you how you determined those results based on the raw data, because I don't understand your description for 100%.

  7. #7
    Registered User
    Join Date
    03-31-2016
    Location
    Berlin
    MS-Off Ver
    2013
    Posts
    41

    Re: VLOOKUP and search name

    I would like to get the figures in tab1 from the 3 tables (last 6,8 and 10) to tab2 , vlookup can be used in addition the formula should look under name (last6,last8,last10), i hope i have explained better than in the initial entry :-)

  8. #8
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: VLOOKUP and search name

    I don't see tab1, tab2 and I don't see expected results.

  9. #9
    Registered User
    Join Date
    03-31-2016
    Location
    Berlin
    MS-Off Ver
    2013
    Posts
    41

    Re: VLOOKUP and search name

    Good morning Hans, sorry for not better elaborating on that.
    I have adapted the excel file with retrieved data from tab1 to tab2 using the VLOOKUP and see my main question (is it possible to use the VLOOKUP at same time searching in (Form: Last 6 matches),( Form: Last 8 matches) , (Form: Last 10 matches)

    kind of asking Excel to search for (Form: Last 6 matches) and retrieve the data from the table belonging to (Form: Last 6 matches) it does not matter if the table from (Form: Last 6 matches) has been moved to other cells, which is the case because those table are not all time in the same cells, they move on daily base

    and to search for (Form: Last 8 matches) and retrieve the data from the table belonging to (Form: Last 8 matches)


    and the same applies for (Form: Last 10 matches)

    Regards

    Oulyas
    Attached Files Attached Files
    Last edited by oulyas; 11-24-2022 at 05:31 AM.

  10. #10
    Registered User
    Join Date
    03-31-2016
    Location
    Berlin
    MS-Off Ver
    2013
    Posts
    41

    Re: VLOOKUP and search name

    Good morning Hans, shall i explain more or is this enough to support me, thanks.

  11. #11
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: VLOOKUP and search name

    Please try in B2 and copy down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Confirm formula with CTRL+SHIFT+ENTER
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    03-31-2016
    Location
    Berlin
    MS-Off Ver
    2013
    Posts
    41

    Re: VLOOKUP and search name

    Thanks Hans, this is what i was looking for :-), it works fantastic.

    Just a small issue with it

    the formula doesn´t distinguish between: [Form: Last 4 matches (AT HOME)] and [Form: Last 4 matches (AWAY)]

    and between [Form: Last 8 matches (AT HOME)] and [Form: Last 8 matches (AWAY)]

    The values (AT HOME) and (AWAY) are different.

    The formula is taking values from [Form: Last 4 matches (AT HOME)] for both (AT HOME) and for (AWAY) to tab2

    Regards

    Oulyas
    Attached Files Attached Files
    Last edited by oulyas; 11-25-2022 at 09:03 AM.

  13. #13
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: VLOOKUP and search name

    the formula doesn´t distinguish between: [Form: Last 4 matches (AT HOME)] and [Form: Last 4 matches (AWAY)]
    Indeed, such a case that cannot be recognized by the line being looked up (but can only be recognized by the position of the line) was not in your example.

    Now you need a very different formula:

    Please try
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    03-31-2016
    Location
    Berlin
    MS-Off Ver
    2013
    Posts
    41

    Re: VLOOKUP and search name

    I have opened your attached excel file , unfortunately it does not show the required results.
    Regards
    Oulyas
    Attached Images Attached Images

  15. #15
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: VLOOKUP and search name

    In Excel 2013 is no SEQUENCE function available.

    Please replace the SEQUENCE-function by the ROW-function:

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


    Unfortunately this function is much slower.
    Attached Files Attached Files

  16. #16
    Registered User
    Join Date
    03-31-2016
    Location
    Berlin
    MS-Off Ver
    2013
    Posts
    41

    Re: VLOOKUP and search name

    I tried this under my friend´s PC using Office 2016 the same issue see attached screenshot
    Your support is much appreciated.
    Attached Images Attached Images

  17. #17
    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. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,434

    Re: VLOOKUP and search name

    The LET function is not available in either Excel 2013 or Excel 2016.
    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.

  18. #18
    Registered User
    Join Date
    03-31-2016
    Location
    Berlin
    MS-Off Ver
    2013
    Posts
    41

    Re: VLOOKUP and search name

    ok i will try to test under Excel 2021 at work, thanks

  19. #19
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: VLOOKUP and search name

    I'm sorry I forgot to replace the LET-function:

    FOR EXCEL 2013 please try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  20. #20
    Registered User
    Join Date
    03-31-2016
    Location
    Berlin
    MS-Off Ver
    2013
    Posts
    41

    Re: VLOOKUP and search name

    Still the same it doesn´t work :-)
    Attached Images Attached Images

  21. #21
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: VLOOKUP and search name

    Now Excel understands the formula, because you get a #NV-error. : "Der Fehler #NV weist im Allgemeinen darauf hin, dass eine Formel nicht das finden kann, nach dem gesucht werden soll."
    A #NV-error is in English a #N/A-error.

    Please upload the sheet with the #NV error. Then I can figure out the cause.
    Maybe not all your headers start with "FORM: " or EXCEL can't find the FORM: on the other sheet. Even one space too much or too little in your data can cause such an error.
    Last edited by HansDouwe; 11-27-2022 at 02:29 PM.

  22. #22
    Registered User
    Join Date
    03-31-2016
    Location
    Berlin
    MS-Off Ver
    2013
    Posts
    41

    Re: VLOOKUP and search name

    Moin Hans, here is the original excel file uploaded.
    Please check one more last thing :-) the data from (RelativeForm) to be transfered too.
    Thanks so much for your support.

    PS: why the original file is now uploaded, just to save me any mistakes copying in wrong sheets and cells :-)

    Rgards
    Oulyas.
    Attached Files Attached Files

  23. #23
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: VLOOKUP and search name

    The formula could not find the forms, because on sheet Forms there were spaces in the form name, but these were missing on sheet SW1.
    Furthermore the formula could not find the teams, because they were on sheet SW1 surrounded by 2 CHAR(160)'s.
    Furthermore, the form names and the team names were no longer in the same column.

    After adjusting the team names, form names, and the references of the moved data, the formula works like a charm again. .
    Attached Files Attached Files

  24. #24
    Registered User
    Join Date
    03-31-2016
    Location
    Berlin
    MS-Off Ver
    2013
    Posts
    41

    Re: VLOOKUP and search name

    Same issue it doesn´t show the required resultes, it may have some thing to do with my old excel version (2013), if i knew a new excel version (2021) will help , i will buy one today :-)
    Attached Images Attached Images

  25. #25
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: VLOOKUP and search name

    Did you confirm the formula with CTRL+SHIFT+ENTER and then press another time ENTER to execute the formula again?

    If this does not work well, I advise you to add a help column with the name of the form on both sheets.
    Then you can suffice with a very simple formula. See next post.

    If you use Excel a lot then I advise you to upgrade to 365 (monthly channel).
    Many new easy functions have been added there and the difference even with EXCEL 2021 is very big.
    Last edited by HansDouwe; 11-28-2022 at 09:18 AM.

  26. #26
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: VLOOKUP and search name

    Here is a solution with a helper column (Column A) in both sheets with the name of the form.

    And try in row 246 this formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Confirm the formula with CTRL+SHIFT+ENTER and then press another time ENTER to execute the formula again
    Attached Files Attached Files

  27. #27
    Registered User
    Join Date
    03-31-2016
    Location
    Berlin
    MS-Off Ver
    2013
    Posts
    41

    Re: VLOOKUP and search name

    Yes i confirmed the formula with CTRL+SHIFT+ENTER and then press another time ENTER still the same.
    I am waiting for my friend to test with his excel 2021 this evening and i will update you., thanks Hans.

  28. #28
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: VLOOKUP and search name

    Good luck tonight with Excel 2021.
    I'm also curious if the solution in post #26 works in Excel 2013.

  29. #29
    Registered User
    Join Date
    03-31-2016
    Location
    Berlin
    MS-Off Ver
    2013
    Posts
    41

    Re: VLOOKUP and search name

    Good morning Hans, this works under Excel 2016 as you can see in "pic1" from "SW1", but the issue is in tab 2 "FORMS" see "pic2" when the data for example for "Form: Last 4 matches" moves down then the vlookup
    do not work as it should, which means i will have to do it each time manualy to push "Form: Last 4 matches" , "Form: Last 6 matches", "Form: Last 10 matches"..etc
    if those added cells in "FORMS" "A" are not deleted then the VLOOKUP will not work see "PIC3"
    Attached Images Attached Images
    Last edited by oulyas; 11-29-2022 at 08:53 AM.

  30. #30
    Registered User
    Join Date
    03-31-2016
    Location
    Berlin
    MS-Off Ver
    2013
    Posts
    41

    Re: VLOOKUP and search name

    Good morning Hans, at thge end i have tested the file from post#19 under office 365, the same doesn´t work :-(
    Regards
    Oulyas
    Attached Images Attached Images

  31. #31
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: VLOOKUP and search name

    This is then an extra confirmation that there is something in the data that the formula does not expect or that the references in the formula are not correct.
    You have to ask yourself whether the form names are written exactly the same, the team names are written exactly the same and that there are no weird characters anywhere and also that all references are exactly right.

    I'd be happy to look into that for you, but please upload an example workbook that doesn't work. You can't see it from a picture.

  32. #32
    Registered User
    Join Date
    03-31-2016
    Location
    Berlin
    MS-Off Ver
    2013
    Posts
    41

    Re: VLOOKUP and search name

    Hi Hans, here is the actual file attched with todays data. Regards
    Attached Files Attached Files

  33. #33
    Registered User
    Join Date
    03-31-2016
    Location
    Berlin
    MS-Off Ver
    2013
    Posts
    41

    Re: VLOOKUP and search name

    Hi Hans, i have elaborated and used your hint using a helper column (see in attached file) and formatted it with different colors at least if the data will move to other cells it will be visible, but still missing one thing for in (SW1 in D423) how to transfer the data from (FORMS) using this text (Form tables in featured leagues) for the table below it and replace all values with DOTS with COMMA (3.00
    to be replaced with 3,00)

    Kind regards
    Attached Files Attached Files

  34. #34
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: VLOOKUP and search name

    I think working with help columns is a good choice to quickly and easily control the formulas. .

    Replacing values is a new subject.
    Select Values --> CTRL+F --> . --> Replace --> , --> Replace all

  35. #35
    Registered User
    Join Date
    03-31-2016
    Location
    Berlin
    MS-Off Ver
    2013
    Posts
    41

    Re: VLOOKUP and search name

    Quote Originally Posted by HansDouwe View Post
    I think working with help columns is a good choice to quickly and easily control the formulas. .

    Replacing values is a new subject.
    Select Values --> CTRL+F --> . --> Replace --> , --> Replace all
    for in (SW1 in D423) how to transfer the data from (FORMS) using this text (Form tables in featured leagues)

  36. #36
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,650

    Re: VLOOKUP and search name

    If I understand correctly then this seems to work:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    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.

  37. #37
    Registered User
    Join Date
    03-31-2016
    Location
    Berlin
    MS-Off Ver
    2013
    Posts
    41

    Re: VLOOKUP and search name

    It doesn´t work. it seems something wrong with the formula.
    Regards
    Attached Images Attached Images

  38. #38
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,622

    Re: VLOOKUP and search name

    Maybe try changing the commas ( , ) to semi-colons ( ; ).

  39. #39
    Registered User
    Join Date
    03-31-2016
    Location
    Berlin
    MS-Off Ver
    2013
    Posts
    41

    Re: VLOOKUP and search name

    Same issue after changing the comma to semicolon
    Attached Images Attached Images

  40. #40
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: VLOOKUP and search name

    I think Trevor is right. Try: Change ,1 and ,2 in ;1 and ;2

    (You have changed the wrong komma(the only komma that was not a parameter-separator, but the komma you want in the number.)
    So also change that semicolon back to a komma.
    Last edited by HansDouwe; 12-08-2022 at 08:54 AM.

  41. #41
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,622

    Re: VLOOKUP and search name

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

  42. #42
    Registered User
    Join Date
    03-31-2016
    Location
    Berlin
    MS-Off Ver
    2013
    Posts
    41

    Re: VLOOKUP and search name

    Sorry the same issue after pasting your new formula
    Regards
    Attached Images Attached Images

  43. #43
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,650

    Re: VLOOKUP and search name

    Here is the file with the formula applied.
    When the file is opened the formula should be adjusted to your regional settings.
    Let us know if you have any questions.
    Attached Files Attached Files

  44. #44
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,622

    Re: VLOOKUP and search name

    See if this works for you. You may need to change the stop ( . ) to a comma ( , )

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    returns 3 (numeric) for me. You can format it however you want to see decimal places.

    You might need
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Or even
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  45. #45
    Registered User
    Join Date
    03-31-2016
    Location
    Berlin
    MS-Off Ver
    2013
    Posts
    41

    Re: VLOOKUP and search name

    Happy new year to you all, sorry for this very late reply (bad time :-(
    thanks all for your positive contribution, i have stopped this topic and i am not calculating any more using this approach, this topic can be closed.
    Regards
    OULYAS

  46. #46
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,622

    Re: VLOOKUP and search name

    You're welcome. Thanks for the +reps.


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

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon 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 those who helped.

+ 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] Vlookup to search for a value in a table but ignore part of the search criteria
    By m1cks in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-18-2021, 07:59 AM
  2. how to make vlookup search frequently search from the whole table
    By Pmaldini3 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-26-2015, 03:12 AM
  3. barcode search in vlookup with pop up message upon successful search
    By tangelag in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-13-2014, 12:25 PM
  4. how to bring all vlookup returns even with duplicate vlookup search keys
    By NYC4LIFE in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-06-2013, 04:53 PM
  5. vlookup? match? index? MULTIPLE criteria for vlookup search problem....
    By aborg88 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-11-2013, 09:56 AM
  6. [SOLVED] Search in a row for a column number after a Vlookup search.
    By Fiebuls in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-11-2012, 04:25 AM
  7. Search word within Cell (Vlookup+Search)
    By Amarjeet Singh in forum Excel General
    Replies: 6
    Last Post: 01-30-2009, 10:26 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