+ Reply to Thread
Results 1 to 3 of 3

Vlook up N/A error

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    06-03-2009
    Location
    Phoenix, Az
    MS-Off Ver
    MS Office 365
    Posts
    145

    Vlook up N/A error

    Hello all -
    I am attempting to do a Vlookup that has a list box thrown into the mix.

    What is happening is inside the list box, there are a group of dates. When I click on a set of dates, a numbers appears in Cell B10 corresponding to how far down from the top I am.

    What I am attempting to do is set up a vlookup where the formula inside cell C10 looks at B10, goes to another tab on the spreadsheet called "Date List", looks at the data on "Date List" and fills in C10 with the correct month based on the number in cell B10. But for some reason, I keep getting an "#N/A" error.

    I did a Vlook up earlier with no problems. Just can't figure this one out!

    Thank you all.

    Dave
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Vlook up N/A error

    You are looking up numeric value and when the vlookup is using string trying to match your value. Change your formula to =INDEX('Date List'!$A$2:$A$72,'Main Sheet'!B10)

  3. #3
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Vlook up N/A error

    VLOOKUP matches the value in the leftmost column of the stated range, and return the matching row value in the column 'n' to the right, based on the third argument of the formula...

    Your VLOOKUP formula is trying to match a number with a Month string, in [Date List] column A - of course, it can't find it, so it returns #N/A.

    If you are just using that number (in B10) to return the month name from column A of [Date List], then why not use an INDEX:
    In cell C10 enter
    Formula: copy to clipboard
    =INDEX('Date List'!A2:A72,B10)
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

+ 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. [SOLVED] If Error with Vlook Up using VBA
    By NeedForExcel in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-04-2013, 03:27 PM
  2. Vlook up VBA Error when value not found "runtime error -1004"
    By sriram170 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-06-2013, 01:14 PM
  3. vlook up
    By Sean in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 PM
  4. VLOOK
    By Adnan in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  5. Vlook Up Error
    By rnunez8996 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-31-2005, 03:14 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