+ Reply to Thread
Results 1 to 12 of 12

VLOOKUP Formula coming back with NA#

  1. #1
    Registered User
    Join Date
    10-17-2012
    Location
    adelaide
    MS-Off Ver
    Excel 2003
    Posts
    9

    Talking VLOOKUP Formula coming back with NA#

    Hi,

    I have created a template for my CRM, and want to creat a snapshot of each entry entered into one report. By doing this I have the user enter in the estimate number (quote reference number) and than all the details relating to it will be summarised in a report.

    The formula I have used is
    =IF(ISBLANK($D$6)," ",VLOOKUP($D$6,QuoteData,2,FALSE))

    Isblank cell (D6) is the entry where you type in the quote number, this refers back to the main data sheet.

    It is a simple request however, coming back as NA#, very frustrating.

    I have attached an example for your viewing
    The workbook is called Ziltek Opportunities register and the two worksheets in relationship to each other with the formula is - Quote Register and Opportunity Reprt

    Please help
    Thank you
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    08-14-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    573

    Re: VLOOKUP Formula coming back with NA#

    Hi Monza2,

    In the vlookup, you are using "QuoteData" as the table array. For vlookup to work, the lookup value (D6) should be in the first column of the table array (Quotedata). However, the first column of the quotedata has date entry. The enquiry number is in the third column. That is why it is returning NA#. The table array should start from E column of Quote register sheet.

    Hope you got it.

  3. #3
    Registered User
    Join Date
    10-17-2012
    Location
    adelaide
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: VLOOKUP Formula coming back with NA#

    OMG I should have realised that , thank you so much for your help, worked a treat!!!!
    Greatly appreciated

  4. #4
    Valued Forum Contributor
    Join Date
    08-14-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    573

    Re: VLOOKUP Formula coming back with NA#

    Great. Please make this post as solved

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: VLOOKUP Formula coming back with NA#

    instead of using vlookup (and having to change your table around), use index/match instead...
    =INDEX(QuoteData,MATCH(D6,'Quote Register'!$E$6:$E$257,0),2) - change the ,2 to whichever column number you need (counting from C) for the other references

    if you gave your table headings on your data sheet the same names as on your summary sheet, then instead of having to use a number (, 3 etc) for the column, you could use another match, based on what you wanted to find.

    do a bit or reading on inxex/match if you are not familiar with it
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: VLOOKUP Formula coming back with NA#

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  7. #7
    Registered User
    Join Date
    10-17-2012
    Location
    adelaide
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: VLOOKUP Formula coming back with NA#

    Also just another dilema, I have an array formula
    =SUM(IF(MONTH('Quote Register'!$K$13:$K$257)=MONTH(Q$4),IF(YEAR('Quote Register'!$K$13:$K$257)=YEAR(Q$4),IF('Quote Register'!$L$13:$L$257=$B5,IF('Quote Register'!$E$13:$E$257=$D$2,'Quote Register'!$O$13:$O$257,IF($D$2="(ALL)",'Quote Register'!$O$13:$O$257,0)),0),0),0))

    however when I add a new line in my sheet the formula moves from $K$13 to $K$14, how do I have it stay always at $K$13 when a new line is entered?

    Thank you

  8. #8
    Valued Forum Contributor
    Join Date
    08-14-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    573

    Re: VLOOKUP Formula coming back with NA#

    How about using indirect("K13") in place of $K$13. Since K13 is entered as text, it wont change.

  9. #9
    Registered User
    Join Date
    10-17-2012
    Location
    adelaide
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: VLOOKUP Formula coming back with NA#

    Hi, How do I insert indirect into my formula, I tried and it came back with error
    =SUM(IF(MONTH('Quote Register'!$K$13:$K$257)=MONTH(Q$4),IF(YEAR('Quote Register'!$K$13:$K$257)=YEAR(Q$4),IF('Quote Register'!$L$13:$L$257=$B5,IF('Quote Register'!$E$13:$E$257=$D$2,'Quote Register'!$O$13:$O$257,IF($D$2="(ALL)",'Quote Register'!$O$13:$O$257,0)),0),0),0))

  10. #10
    Valued Forum Contributor
    Join Date
    08-14-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    573

    Re: VLOOKUP Formula coming back with NA#

    Try this one.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  11. #11
    Registered User
    Join Date
    10-17-2012
    Location
    adelaide
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: VLOOKUP Formula coming back with NA#

    Hi
    I tried this formula back came back with #REF!

  12. #12
    Valued Forum Contributor
    Join Date
    08-14-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    573

    Re: VLOOKUP Formula coming back with NA#

    Oh it's an array formula! ok try this one.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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