+ Reply to Thread
Results 1 to 6 of 6

VLOOKUP Question

  1. #1
    Registered User
    Join Date
    06-03-2014
    Posts
    14

    VLOOKUP Question

    Hey,
    Attached is what I am working on. I have 2 tabs an Original and a Summary. I am trying to have it so that when I update the date in the Original tab, the Summary tab automatically updates the date using a VLOOKUP. But I keep getting a #REF error and was wondering if I could get some help.

    =VLOOKUP(A2,Original!$B$2:$B$18,3,FALSE)
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: VLOOKUP Question

    Maybe:

    =VLOOKUP(A2,Original!$B$2:$C$18,2,FALSE)

  3. #3
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: VLOOKUP Question

    This is because whole range has to be included in the array. In B:B there is no third column so it returns an error. So it should be B:D or B:E or anything after D, so that 3rd column i.e. D is a part of the array.
    Please Login or Register  to view this content.
    EDIT-
    However, I just saw that in your case you are actually referring to Column C. So it should be-
    Please Login or Register  to view this content.
    Although Column C is 3rd but in array B:C it is the 2nd column.
    Last edited by sourabhg98; 04-13-2016 at 07:23 AM.
    Happy to Help

    How to upload excel workbooks at this forum - http://www.excelforum.com/the-water-...his-forum.html

    "I don't get things easily, so please be precise and elaborate"

    If someone's post has helped you, thank by clicking on "Add Reputation" below the post.
    If your query is resolved please mark the thread as "Solved" from the "Thread Tools" above.

    Sourabh

  4. #4
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Re: VLOOKUP Question

    Good afternoon superdrno
    Please Login or Register  to view this content.
    The "$B$2..." part refers to an array - think of it as a table.
    The ",2," part is the number of columns in your table Excel needs to count across - you've only got two columns in your table, so it can't be greater than 2.

    HTH

    DominicB

  5. #5
    Registered User
    Join Date
    06-03-2014
    Posts
    14

    Re: VLOOKUP Question

    Ohh thank you all so much. One follow on. what if in the original tab Column B is the task name and there are 3 columns in between and Column F is now the new column with dates? how would this change the formula?
    Attached Files Attached Files
    Last edited by superdrno; 04-13-2016 at 07:26 AM.

  6. #6
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: VLOOKUP Question

    Quote Originally Posted by superdrno View Post
    Ohh thank you all so much. One follow on. what if in the original tab Column B is the task name and there are 3 columns in between and Column F is now the new column with dates? how would this change the formula?
    Then


    =VLOOKUP(A2,Original!$B$2:$F$18,5,FALSE)

+ 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. VLookup Question
    By cf7046 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-06-2011, 01:22 AM
  2. Excel 2007 : VLOOKUP Question
    By neiln01 in forum Excel General
    Replies: 2
    Last Post: 03-01-2011, 11:39 AM
  3. VLOOKUP question
    By Mehhico in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-22-2010, 04:08 AM
  4. Vlookup Question-how do I manage the Vlookup?
    By athard in forum Excel General
    Replies: 5
    Last Post: 12-31-2009, 06:04 AM
  5. vlookup question
    By Rothmans in forum Excel General
    Replies: 5
    Last Post: 01-02-2009, 10:20 AM
  6. VLOOKUP and SUM Question
    By mikeydread in forum Excel General
    Replies: 5
    Last Post: 12-30-2008, 10:05 PM
  7. vlookup question, if N/A then = 0???
    By txbullets in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-29-2007, 12:30 PM
  8. If/And/Vlookup question
    By hoosonfirst in forum Excel General
    Replies: 3
    Last Post: 08-20-2005, 10:05 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