+ Reply to Thread
Results 1 to 5 of 5

combining vlookup and hlookup to extract data on another sheet

  1. #1
    Registered User
    Join Date
    09-05-2010
    Location
    Felixstowe, England
    MS-Off Ver
    Excel 2007
    Posts
    18

    combining vlookup and hlookup to extract data on another sheet

    Hi,

    I downloaded a program for completing a football results program. I altered the original to increase the number of teams and sorted out the cliches in the original program. This now works effectively with no problems. The only niggle I have is that all the results have to be entered via the Fixture Grid Sheet. What I am aiming to do is enter via another sheet, Full Fixture List.

    To give a basic run down to enter the result is as follows. Enter result of 1st match in F2 (Home Team column E) and H2 (Away Team column I) on Full Fixture List. This result, after finding relevant cell to column E and I on Full Fixture List, is entered on the Fixture Grid Sheet from cell J2 (data format for the rest of the program) . The vertical cells are for Home teams and horizontal for away teams. Also I am trying to do and if / or in that if there is no result the the fixture date is displayed, stored at C2 on Full Fixture List. This of course is then repeated for all other matches through the season.

    I have tried using VLOOKUP and HLOOKUP, also IF but all I seem to do is make a complete unusable mass of formula with no direction at all. Now I am, after several blundering attempts, calling out for help.

    Attached are the relevant sheets that are required for the formula I am looking for help to complete.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: combining vlookup and hlookup to extract data on another sheet

    It's easier to use Index-Match for this than V/HLookups. This should do what you want, I think.

    1. Go to your 'Full fixture list' sheet and convert the information there to an Excel table, by clicking anywhere in it and pressing Ctrl-T. Excel will automatically select the correct range. Leave the 'my table has headers' selected. This will make it much easier to see what's going on.

    2. Rename the table by clicking the 'Table Tools - Design' tab and changing the 'Table1' at the left-hand end to 'T_FixtureList'. (You can call it anything, but this is what I've used for the formula below.

    3. Rename the last column to 'Result' instead of 'Column2'.

    4. Go to the 'Fixture Grid' sheet. Select the range B2:Y25 and change the cell format from 'Text' to a date format (whichever format you prefer). You must do this before the next step or Excel won't treat the formula as a formula but as text.

    5. Put this formula in B2:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Important: this is an array formula so needs to be entered using Ctrl-Shift-Enter not just Enter. You will know the array is active when you see curly brackets { } appear around your formula - don't try to enter them yourself. If you do not Ctrl-Shift-Enter you will get an error or a clearly incorrect result (in this case, you'll get 'not found' in every cell except the grey ones). If that happens, just click into the formula bar and try C-S-E again.

    You can now drag the formula right then down (or down then right, doesn't matter).

    There are a few fixtures which don't appear in your fixture list. I think they correspond to some non-standard entries in your fixture list (Milton Keynes instead of MK Dons, etc). I've put 'not found' in the formula above for them - change it to whatever you want. You can use Conditional Formatting to find these 'not found' cells more easily if you like.

    Your file is attached with these changes. Hope that does what you want.
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

  3. #3
    Valued Forum Contributor
    Join Date
    07-14-2017
    Location
    Poland
    MS-Off Ver
    Office 2010
    Posts
    528

    Re: combining vlookup and hlookup to extract data on another sheet

    Hi, test my formula in C2 and copy to the appropriate remaining cells.
    If there is no set of teams, for example: AFC Wimbledon vs Blackpool will appear "???".
    Please Login or Register  to view this content.
    Best Regards,
    Maras.

  4. #4
    Registered User
    Join Date
    09-05-2010
    Location
    Felixstowe, England
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: combining vlookup and hlookup to extract data on another sheet

    Thanks Aardigspook. Formula worked exactly as I had intended. Thanks for wift reply

    DaveLearner

  5. #5
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: combining vlookup and hlookup to extract data on another sheet

    You're welcome, glad to be of help.

+ 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. Combining VLookup & HLookup
    By CaseyNoyes in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 12-14-2018, 02:10 PM
  2. [SOLVED] Combining vlookup and hlookup (urgent) :'(
    By Klovers in forum Excel General
    Replies: 6
    Last Post: 05-15-2015, 08:55 AM
  3. Combining VLOOKUP and HLOOKUP ?
    By fannta in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-27-2015, 12:16 PM
  4. Combining two worksheets using Vlookup and Hlookup.
    By lovinguy in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-07-2014, 09:52 AM
  5. Combining Vlookup with Hlookup
    By Mugendi in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-05-2014, 08:32 AM
  6. Vlookup & Hlookup combining separate workboo
    By Amak30 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-02-2010, 10:28 AM
  7. Replies: 4
    Last Post: 10-28-2009, 04:28 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