+ Reply to Thread
Results 1 to 8 of 8

vlookup won't work on a formula cell

  1. #1
    Registered User
    Join Date
    05-09-2013
    Location
    Toronto
    MS-Off Ver
    Excel 2003
    Posts
    56

    vlookup won't work on a formula cell

    Hi ,

    My lookup Value cell has a fomular that gives me the average of certain fields. What the VLookup does is , if the average is a certain number then populate a certain on the Vlookup cell.

    My problem is that if I manuall enter the average on the my lookup value cell, then the vlookup works fine, however if I try to get the average from a fomular Vlookup comes back as “N/A”..

    Thanks,
    LL

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,610

    Re: vlookup won't work on a formula cell

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include BEFORE/AFTER sheets if needed to show the process you're trying to complete or automate. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  3. #3
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,654

    Re: vlookup won't work on a formula cell

    If you post your formula, or better your file, we can help you better
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: vlookup won't work on a formula cell

    You'll probably find that the average formula is returning a number with several decimal places, like 12.3456 or something.
    but you have the cell formatted to only show 2 decimal places, so it appears to be rounded to 12.35
    But the Vlookup is looking at the entire value with several decimals, not just the formatted value.

    That's why it works when you manually type the value, but not by the result of the formula.

  5. #5
    Registered User
    Join Date
    05-09-2013
    Location
    Toronto
    MS-Off Ver
    Excel 2003
    Posts
    56

    Re: vlookup won't work on a formula cell

    You are correct it has several decimal places... How can i work around this.. Plus I cant share the sheet since im at work.

    Quote Originally Posted by Jonmo1 View Post
    You'll probably find that the average formula is returning a number with several decimal places, like 12.3456 or something.
    but you have the cell formatted to only show 2 decimal places, so it appears to be rounded to 12.35
    But the Vlookup is looking at the entire value with several decimals, not just the formatted value.

    That's why it works when you manually type the value, but not by the result of the formula.

  6. #6
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: vlookup won't work on a formula cell

    If the data in your lookup table is sorted ascending on the leftmost column, then Use TRUE as the 4th argument in the vlookup.

  7. #7
    Registered User
    Join Date
    05-09-2013
    Location
    Toronto
    MS-Off Ver
    Excel 2003
    Posts
    56

    Re: vlookup won't work on a formula cell

    Thanks a Million.. it worked

  8. #8
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: vlookup won't work on a formula cell

    Great, glad to help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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