+ Reply to Thread
Results 1 to 5 of 5

formula not yielding value from vlookup

Hybrid View

  1. #1
    Registered User
    Join Date
    10-29-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003
    Posts
    14

    formula not yielding value from vlookup

    All -

    I had posted a query and got that resolved with help of excellent members of this group.

    http://www.excelforum.com/excel-prog...-new-post.html

    I implemented the solution suggested but below piece of code is not putting the value out of vlookup. The column is populated with "#VALUE!". I have to press CTRL+SHIFT+ENTER in order to have the results populated.


    With Range("B2")
        .FormulaR1C1 = "=VLOOKUP(lower(RC[-1]),trim(lower('Team Detail'!R2C2:R200C5)),2,0)": .Resize(k).FillDown
    End With
    Can anyone suggest what is the reason and what could be done to resolve it?
    Last edited by vislavti; 10-31-2011 at 01:28 PM. Reason: Changed Quote Tags to Code Tags

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: formula not yielding value from vlookup

    Hello vislavti,

    The #VALUE error indicates that VLOOKUP did not find a match. You should check that your cell references are correct. Here is what the references look like in A1 style.
    =VLOOKUP(LOWER(A2),TRIM(LOWER('Team Detail'!$B$2:$E$200)),2,0)
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    10-29-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: formula not yielding value from vlookup

    Thank you for your reply. Could you please tell me why pressing CTR+SHIFT+ENTER brings result?

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: formula not yielding value from vlookup

    Hello vislavti,

    A formula is entered with Ctrl+Shift+Enter when the operation is applied to multiple cells simultaneously.Formulas that operate on more than one cell are know as array formulas. You must enter array formulas with Ctrl+Shift+Enter and drag them down the range to see the individual results. If you don't then only the first result is returned.

  5. #5
    Registered User
    Join Date
    10-29-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: formula not yielding value from vlookup

    yes..thanks. this has been resolved. the problem is TRIM & LOWER on second argument of vlookup. Once removed..formula is bringing results now.

+ 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