+ Reply to Thread
Results 1 to 14 of 14

Is vlookup the correct function for the result I want?

  1. #1
    Forum Contributor
    Join Date
    08-21-2010
    Location
    Bournemouth, England
    MS-Off Ver
    Microsoft 365
    Posts
    215

    Is vlookup the correct function for the result I want?

    Hello.
    Please find attached my English Premier League Table.
    In column AB under Home, I want to enter each home team and have their corresponding Home Attack Strength rating from column W to appear in column AC under Goals.
    In column AD under Away, I want to enter each away team and have their corresponding Away Defence Strength rating from column Z to appear in column AE under Goals.
    So, if I enter all the home teams in column AB and all the away teams in column AD, all the relevant information will appear under each Goals column.
    Thank you.
    Attached Files Attached Files
    Last edited by tom hatten; 12-17-2016 at 05:24 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Is vlookup the correct function for the result I want?

    Please provide a few rows of expected results - it's not clear to me what data you want to see there. I'm not even sure why you want to apparently repeat what is already on the same row.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Is vlookup the correct function for the result I want?

    In AA9 you might use
    =IFERROR(INDEX(U$9:U$28,MATCH($Z9,$C$9:$C$28,0)),"")
    and copy to AC9.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  4. #4
    Valued Forum Contributor kasan's Avatar
    Join Date
    07-22-2009
    Location
    Riga, Latvia
    MS-Off Ver
    Excel 2010
    Posts
    680

    Re: Is vlookup the correct function for the result I want?

    Your references in post does not match same columns in the file, but whatever.
    As per columns in file:
    Column Z - you enter Home team
    Column AA - formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Column AB - you enter Away team
    Column AC - formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Pull formulas down and get result.

  5. #5
    Forum Contributor
    Join Date
    08-21-2010
    Location
    Bournemouth, England
    MS-Off Ver
    Microsoft 365
    Posts
    215

    Re: Is vlookup the correct function for the result I want?

    Very sorry about the references being wrong. I have several tables on the one sheet and quickly copied and pasted the top table without changing the cells.
    xlnitwit and kasan, your formulas both work exactly as I wanted.
    Thank you very much.

  6. #6
    Forum Contributor
    Join Date
    08-21-2010
    Location
    Bournemouth, England
    MS-Off Ver
    Microsoft 365
    Posts
    215

    Re: Is vlookup the correct function for the result I want?

    Sorry for being a pain but I've hit another snag which I can't solve. I'm obviously doing something wrong somewhere, but I don't know what. The formula I'm working with was kindly given by xlnitwit and it works well with the Premier League tables. However, when I copy the formula into cell AB34, it doesn't work, even after copying it manually and including the correct cells.
    Thank you.

  7. #7
    Valued Forum Contributor kasan's Avatar
    Join Date
    07-22-2009
    Location
    Riga, Latvia
    MS-Off Ver
    Excel 2010
    Posts
    680

    Re: Is vlookup the correct function for the result I want?

    What exactly doesn't work? Please, attach workbook with your "problem" formula, without it we can't see that is wrong with formula.

  8. #8
    Forum Contributor
    Join Date
    08-21-2010
    Location
    Bournemouth, England
    MS-Off Ver
    Microsoft 365
    Posts
    215

    Re: Is vlookup the correct function for the result I want?

    Quote Originally Posted by kasan View Post
    What exactly doesn't work? Please, attach workbook with your "problem" formula, without it we can't see that is wrong with formula.
    Very sorry.
    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,869

    Re: Is vlookup the correct function for the result I want?

    Please explain what you mean by "doesn't work". I cannot see in the attached workbook that anything is malfunctioning. You are going to need to be more explicit: which values do you think it's getting wrong?

    EDIT: I've found the problem: there are trailing spaces. Look at AA34 - there is a space after the word Norwich - that needs to go.

    Try this:

    =IFERROR(INDEX(V$34:V$57,MATCH(TRIM($AA34),$B$34:B$57,0)),"")

    You won't get a match with Bristol City for obvious reasons!
    Last edited by AliGW; 12-17-2016 at 06:02 AM.

  10. #10
    Forum Contributor
    Join Date
    08-21-2010
    Location
    Bournemouth, England
    MS-Off Ver
    Microsoft 365
    Posts
    215

    Re: Is vlookup the correct function for the result I want?

    All calculations alongside Premier League tables are working correctly. All other calculations alongside the other tables, are not.
    Last edited by AliGW; 12-17-2016 at 06:07 AM. Reason: Unnecessary quotation removed.

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

    Re: Is vlookup the correct function for the result I want?

    And have you tried my suggestion?

    Please don't quote whole posts -- it's just clutter. If you are responding to a post out of sequence, limit quoted content to a few relevant lines that makes clear to whom and what you are responding

    For normal conversational replies, try using the QUICK REPLY box below.

  12. #12
    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,869

    Re: Is vlookup the correct function for the result I want?

    To clarify, here's what I said in post #9:

    I've found the problem: there are trailing spaces. Look at AA34 - there is a space after the word Norwich - that needs to go.

    Try this:

    =IFERROR(INDEX(V$34:V$57,MATCH(TRIM($AA34),$B$34:B$57,0)),"")

    You won't get a match with Bristol City for obvious reasons!

  13. #13
    Forum Contributor
    Join Date
    08-21-2010
    Location
    Bournemouth, England
    MS-Off Ver
    Microsoft 365
    Posts
    215

    Re: Is vlookup the correct function for the result I want?

    That appears to work. Thank you very much. Unfortunately, I have to go out for a bit. I'll be back later. Thanks again for your help.
    Last edited by AliGW; 12-17-2016 at 06:46 AM. Reason: Unnecessary quotation removed.

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

    Re: Is vlookup the correct function for the result I want?

    In post #11 I asked you not to quote posts unnecessarily. Please do not ignore a Moderator's request. I have removed the clutter for you once again.

    Rule 7 of our Forum RULES. Please do not ignore requests by Administrators, Moderators and senior forum members regarding forum rules.

    If you are unclear about the request or instruction then send a private message to them asking for clarification.

+ 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] Pulling the second correct result from Vlookup.
    By timmtamm in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-29-2015, 04:30 PM
  2. [SOLVED] Format function won't give correct result
    By danex in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-22-2013, 07:24 AM
  3. SUM function not producing correct result
    By angiebro in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 01-28-2010, 06:10 PM
  4. [SOLVED] A correct IF function doesn't show the function's result in cell
    By Michael in forum Excel General
    Replies: 1
    Last Post: 04-10-2006, 04:15 AM
  5. Pass path result from FilePicker to vlookup with correct syntax
    By sabs in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-10-2005, 06:44 PM
  6. No correct result of user defined function
    By jostoorged in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-15-2005, 03:21 PM
  7. Function WEEKNUM does not show correct result for 15.2.2005
    By Edward in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-14-2005, 08:06 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