+ Reply to Thread
Results 1 to 5 of 5

VLOOKUP Help

  1. #1
    Registered User
    Join Date
    02-16-2007
    Posts
    4

    VLOOKUP Help

    We have an Excel sheet that is a bit complicated and the user who managed it left the company a couple weeks ago. The main issue I'm having with the document is the VLOOKUP formula used. This document helps us generate bid amounts so I do NOT want to take anything to chance when modifying it. I figured someone on this forum would look at this and have an answer in a second. Here is the formula:

    =VLOOKUP(Recap!$A4,Data!$H$18:$I$47,2,FALSE)

    Can someone give me some idea what this is doing?

    Thanks in advance.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: VLOOKUP Help

    Hi,

    It's reading cell A4 on the Recap tab, then looking for that value in the range H18:H47 of the Data tab. When it finds the value in that column H range it looks across on the same row to the value in the 2nd column of the H18:I47 range, i.e. column I and returns whatever is in that cell.

    HTH
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191

    Re: VLOOKUP Help

    It's looking up the value in the Recap sheet, cell A4, then finding it in column H of the data sheet between H18 and H47. The 2 means that it's looking in the second column of the array H18:I47. False (or alternately, a 0) means that it has to find an exact match of A4 in column H. True (or 1) means that it finds the closest match without going over.

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: VLOOKUP Help

    searches for the value given in sheet Recap! cell $A4
    in column h (h18:h47)
    of range Data!$H$18:$I$47 (worksheet data)

    if an exact match is found (thats the FALSE bit) return the coresponding value in the same row from column 2 of the range Data!$H$18:$I$47 i.e column I
    snap essentially the same as above!!!
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  5. #5
    Registered User
    Join Date
    03-08-2004
    Posts
    12

    Re: VLOOKUP Help

    You will also want to note that the range

    Data!$H$18:$I$47

    is fixed, it won't vary. So, if you ever add to that set of data, you will need to adjust this part of the formula.

    I prefer dynamic named ranges.

+ 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