+ Reply to Thread
Results 1 to 3 of 3

Function for VLookup using values for two columns

  1. #1
    Registered User
    Join Date
    06-28-2012
    Location
    CT, USA
    MS-Off Ver
    Excel 2010
    Posts
    7

    Function for VLookup using values for two columns

    I am building a handicap calculator for golf, using pre-specified courses.

    Attached is an example of the sheet. What I need assistance with is a VLOOKUP function. I am trying to make a function that will search for the course name (From Column B in Sheet "Handicap"), and then also do another search for the Tees played (From Column C in Sheet "Handicap"). I would like the function to be able to return the Slope and/or Course Rating from the Sheet "Courses" for the equivalent rows that it just searched for in the Table.

    What would the VLOOKUP function look like for multiple lookups?
    Attached Files Attached Files
    Last edited by m.raby; 07-30-2012 at 09:54 AM.

  2. #2
    Registered User
    Join Date
    06-28-2012
    Location
    CT, USA
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Function for VLookup using values for two columns

    Resolved myself

  3. #3
    Valued Forum Contributor Melvinrobb's Avatar
    Join Date
    06-19-2012
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2013
    Posts
    1,128

    Re: Function for VLookup using values for two columns

    Here is my solution:

    I added a "helper" column in your source table. The column simply combines the course with the Tee position.
    The vlookup function then references both and is able to find the appropriate data.
    NOTE: your listing of the course in the Handicap table was not EXACTLY the same as the listing in the Courses table. This is necessary for the vlookup to work properly.
    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)

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