+ Reply to Thread
Results 1 to 3 of 3

lookup name and return value in adjacent cell

  1. #1
    Registered User
    Join Date
    09-16-2015
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    11

    lookup name and return value in adjacent cell

    Hi,

    I can use vlookup normally, and have tried to use it for what I need, but this is really making me come up short.

    Basically I am trying to achieve what I have so far manually written in the shaded cells on the right of my screen shot below.

    Screenshot 2016-01-25 09.08.19.png

    Basically, in cell J10, I have the name "Barca" and in cells K, M, O, Q I want it to return what happened in their 1st, 2nd, 3rd and 4th fixture.
    I highlighted in the screen shot Barcas results and in cell E (Home result) and F (Away result). So, if Barca (as in this example) won, it would first look up the first Barca match, then once found, determined if home (by seeing that is in column A and then returning the value in column E, if away it returns the value in column F.
    In G and H is the home goal difference and away goals respectively. The same principle will be used in cells L, N, P and R to fill in the Goal Difference part.

    I am really hoping this is possible as eventually this spreadsheet could potentially run into the 1000's of matches played and have more than just 4 games for each team.
    What I have shown you is just a snippet of what my work will be.

    Please help.

    Thanks.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,732

    Re: lookup name and return value in adjacent cell

    Many contributors are not able to view .png files on this forum due to software incompatibilities with some browsers - attach a sample Excel workbook instead.

    Pete

  3. #3
    Registered User
    Join Date
    09-16-2015
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    11

    Re: lookup name and return value in adjacent cell

    Quote Originally Posted by Pete_UK View Post
    Many contributors are not able to view .png files on this forum due to software incompatibilities with some browsers - attach a sample Excel workbook instead.

    Pete
    I have attached a file now.
    Attached Files Attached Files

+ 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. Replies: 3
    Last Post: 07-21-2015, 05:10 PM
  2. [SOLVED] Lookup from other workbooks and return adjacent data
    By rowlandjp in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-15-2013, 04:48 PM
  3. [SOLVED] Lookup from other workbooks and return adjacent data
    By rowlandjp in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-15-2013, 04:03 PM
  4. [SOLVED] Lookup value in a table and return adjacent column value
    By hoss88 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 12-06-2012, 07:56 AM
  5. Lookup and return adjacent cells value
    By ari35 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-24-2012, 02:52 PM
  6. [SOLVED] Lookup Function to Return Values in Adjacent Cell?
    By TCstr8 in forum Excel General
    Replies: 2
    Last Post: 03-30-2012, 11:54 AM
  7. Replies: 1
    Last Post: 01-05-2011, 05:18 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