+ Reply to Thread
Results 1 to 5 of 5

VLOOKUP: lookup_value not working if referring to a cell containing a formula

  1. #1
    Registered User
    Join Date
    01-14-2014
    Location
    Switzerland
    MS-Off Ver
    Excel 2010
    Posts
    8

    VLOOKUP: lookup_value not working if referring to a cell containing a formula

    Hi all

    I am using this formula to lookup a value in another sheet:

    =VLOOKUP(A1;SheetB!$A$1:$E$60;5;FALSE)

    The value which I want to look for is in cell A1. Cell A1 contains a formula.

    My problem: If I use the formula above I get a N/A. If I place the value (a number) into the formula where A1 stands I get the result as I want.

    I checked the cell format - and both are the same (i.e. numbers).

    Thanks in advance for your help.

  2. #2
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: VLOOKUP: lookup_value not working if referring to a cell containing a formula

    I have had problems with numbers as keys so I convert both key and lookup values to strings

  3. #3
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: VLOOKUP: lookup_value not working if referring to a cell containing a formula

    What is the formula in A1, it sounds like your formula is returning a number stored as text, regardless of the cell format. Have you tried:
    =VLOOKUP(1*A1;SheetB!$A$1:$E$60;5;FALSE)

  4. #4
    Valued Forum Contributor Sadath31's Avatar
    Join Date
    03-02-2011
    Location
    Dammam, Saudi Arabia
    MS-Off Ver
    Office 365
    Posts
    452

    Re: VLOOKUP: lookup_value not working if referring to a cell containing a formula

    try this in any cell =EXACT(A1,yourvalue) if this return FALSE, then your formula in A1 returns different value

    alternatively try this =VLOOKUP(round(A1;0);SheetB!$A$1:$E$60;5;FALSE)

  5. #5
    Registered User
    Join Date
    01-14-2014
    Location
    Switzerland
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: VLOOKUP: lookup_value not working if referring to a cell containing a formula

    Thank you yudlugar!

    It returned a number as text. Now it works!

+ 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 Vlookup with the lookup_value is based on a Formula
    By da1nonlybige in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-09-2013, 08:40 PM
  2. [SOLVED] VLookup Error Result where Lookup_value is a Formula
    By excelquest41 in forum Excel General
    Replies: 3
    Last Post: 04-30-2012, 09:05 AM
  3. VLOOKUP won't take a formula for lookup_value???
    By scurveydog in forum Excel General
    Replies: 3
    Last Post: 10-05-2010, 05:21 PM
  4. lookup_value in VLOOKUP formula
    By 99f150 in forum Excel General
    Replies: 7
    Last Post: 03-16-2010, 11:21 AM
  5. [SOLVED] VLOOKUP Formula using variable for lookup_value
    By Los in RI in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-23-2005, 05:55 PM

Tags for this Thread

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