+ Reply to Thread
Results 1 to 3 of 3

concatenate a worksheet reference in vlookup

  1. #1
    Registered User
    Join Date
    11-09-2006
    Posts
    8

    concatenate a worksheet reference in vlookup

    Hi,
    My name is Dan, and I have a concatenate problem.
    My formula currently reads as follows:

    =VLOOKUP($A2,Year1!$C:$U,COLUMN(Year1!$U:$U)-COLUMN(Year1!$C:$C)+1,FALSE)

    If it's possible, I would like to replace the Year1 reference components, which are referencing another sheet in the workbook, to a cell reference in the same sheet. I came up with the following:

    =VLOOKUP($A2,CONCATENATE(B1,"!$C:$U"),COLUMN(Year1!$U:$U)-COLUMN(Year1!$C:$C)+1,FALSE)

    where B1 is a reference that contains the text "Year1". I am receiving a #Value error. Is the problem that Vlookup does not like to have a concatenate embedded in it?

    Thanks
    -Dan

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Try:

    Please Login or Register  to view this content.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    11-09-2006
    Posts
    8

    thanks

    Worked like a charm.
    Thank you.

+ 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. Concatenate and Vlookup
    By AaronH in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 02-18-2008, 07:01 PM
  2. VLOOKUP syntax
    By salfonsi in forum Excel General
    Replies: 9
    Last Post: 02-13-2008, 06:02 PM
  3. VLOOKUP cross reference & Wildcards
    By andrewpnc in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-29-2007, 10:43 PM
  4. VLookup - creating a variable Sheet reference?
    By futbol1097 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-26-2007, 01:57 PM
  5. Replies: 1
    Last Post: 10-16-2006, 08:08 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