+ Reply to Thread
Results 1 to 4 of 4

Using VLookup when the Lookup Value cell contains a formula

  1. #1
    Registered User
    Join Date
    07-18-2015
    Location
    kansas city
    MS-Off Ver
    2008
    Posts
    2

    Using VLookup when the Lookup Value cell contains a formula

    Dear Experts - please help me...

    I am running a VLookup and it works fine with manually inputted text/numbers in the lookup cell. However, the cell I am looking up itself contains a formula, shown below -

    =DATEDIF(D6,NOW(),"y")&"y "

    In the example I am working on, the result is 11y, but the VLookup formula then just spits out #n/a. If I type 11y into the VLookup cell, all is fine.

    Any suggestions please? I've been working on this for hours!

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Using VLookup when the Lookup Value cell contains a formula

    Quote Originally Posted by davidshears View Post
    =DATEDIF(D6,NOW(),"y")&"y "
    You have an extra space character in there.

    Try this:

    =DATEDIF(D6,NOW(),"y")&"y"
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    07-18-2015
    Location
    kansas city
    MS-Off Ver
    2008
    Posts
    2

    Re: Using VLookup when the Lookup Value cell contains a formula

    Thank you Tony! So simple.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Using VLookup when the Lookup Value cell contains a formula

    You're welcome. Thanks for the feedback!


    If your question has been solved please mark the thread as being solved.

    In the menu bar above the very first post select Thread Tools, then select Mark this thread as solved.

+ 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. Using formula as lookup value in vlookup
    By djl295 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-08-2015, 04:57 PM
  2. [SOLVED] Vlookup with '-' in lookup Cell
    By MarianneBal in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-04-2014, 10:12 AM
  3. Lookup/ Vlookup formula/ Index maybe?
    By twrmotorsport in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-17-2014, 01:05 PM
  4. How to use vlookup if value of lookup cell is same in lookup range
    By anujteetwal in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-09-2014, 05:15 AM
  5. [SOLVED] vlookup using a formula as the lookup value
    By Kangaroo_Pouch in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-01-2013, 06:46 AM
  6. Replies: 1
    Last Post: 10-07-2010, 10:19 PM
  7. Vlookup - Lookup Value = RESULT of a formula?
    By m73a in forum Excel General
    Replies: 1
    Last Post: 01-31-2007, 07:27 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