+ Reply to Thread
Results 1 to 4 of 4

Reference in a vlookup trying to understand what it is looking for?

  1. #1
    Registered User
    Join Date
    01-06-2015
    Location
    Glasgow, Scotland
    MS-Off Ver
    2010
    Posts
    2

    Reference in a vlookup trying to understand what it is looking for?

    Hi, just started new project and reviewing a spreadsheet with nested IF statements which contain vlookup functions in the formula. The vlookup references the cell to be looked up "C6" and the sheet and range are defined "'sheet1'!$A:$H" and the number of columns is defined as "D$1" e.g. (vlookup($C6,'sheet1'!$A:$H,D$1,False).

    I don't understand what the "D$1" is contributing to the formula. If someone could explain this I would appreciate it.

    Regards,

    Davie.

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

    Re: Reference in a vlookup trying to understand what it is looking for?

    where D$1 is should be the column number for the range $A:$H
    so D$1 should hold a number between 1-8 if the formula is dragged across a row it will change to E$1
    so similarly F$1
    hold a number between 1-8 so maybe someone has put something like 1,3,5,7,8,2,4,6 in d1::k1
    so when the formula is dragged across it will return from that the results in that order
    Last edited by martindwilson; 01-07-2015 at 09:19 PM.
    "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

  3. #3
    Registered User
    Join Date
    09-01-2011
    Location
    georgia
    MS-Off Ver
    Excel 2010
    Posts
    47

    Re: Reference in a vlookup trying to understand what it is looking for?

    I may be able to build on this response.

    Imagine we have the following table of data:
    A B C
    1 one two three
    2 nine ten eleven

    If we use a VLOOKUP of:
    Please Login or Register  to view this content.
    then it will produce a result of "eleven"

    - "nine": this is the variable that the equation searches for in the first column of the table you passed in to it. In our case, it looks only in A1:A2
    - A1:C2 : this is the full table of data that we pass to the equation
    - 3 : this is the column from the table that we want returned to us from the row where column A holds "nine"
    - FALSE : this indicates we want an exact match for "nine". TRUE would indicate an approximate match.

    I hope that helps
    <----Don't forget to add reputation if I helped

  4. #4
    Registered User
    Join Date
    01-06-2015
    Location
    Glasgow, Scotland
    MS-Off Ver
    2010
    Posts
    2

    Re: Reference in a vlookup trying to understand what it is looking for?

    Thanks for the info. Any more questions I will post again.

    Cheers,

    Davie.

+ 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] Cannot understand a response in a field when using VLookup
    By babak_jani in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-13-2013, 10:55 PM
  2. Need help with VLOOKUP, I don't understand where I am going wrong!
    By mozz792002 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-14-2013, 05:46 AM
  3. [SOLVED] I just don't understand Vlookup and Match
    By stockgoblin42 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-19-2013, 05:26 PM
  4. [SOLVED] R1C1 Reference in Macro, Don't Understand
    By DM2 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-09-2012, 11:38 PM
  5. Replies: 1
    Last Post: 09-18-2007, 02:07 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