+ Reply to Thread
Results 1 to 6 of 6

Why is this VLOOKUP not working? (Attached workbook)

  1. #1
    Registered User
    Join Date
    11-06-2015
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    57

    Why is this VLOOKUP not working? (Attached workbook)

    Hi, I have no idea why this VLOOKUP is not working. I'm trying to match column A,B with column F,G but its always giving me an "N/A".
    matchnotworkingpic.png
    I have attached a sample workbook.
    matchnotworking.xlsx
    Any ideas?

  2. #2
    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
    53,048

    Re: Why is this VLOOKUP not working? (Attached workbook)

    Without looking at you file, I would say that 1 set of data is text, looking like numbers,and the other is real numbers

    Assuming you are searching for the data in column A, try =vlookup(--A2,..................
    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

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,040

    Re: Why is this VLOOKUP not working? (Attached workbook)

    Because in A column you have numbers stored as text.
    That's usually is not a good idea.

    Select A2 cell, press F2 key and enter and it will work.
    Never use Merged Cells in Excel

  4. #4
    Registered User
    Join Date
    11-06-2015
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    57

    Re: Why is this VLOOKUP not working? (Attached workbook)

    @FDibbins @zbor I love you guys! You're right, its the text column that is causing the problem.

  5. #5
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,939

    Re: Why is this VLOOKUP not working? (Attached workbook)

    c2=IFERROR(VLOOKUP(A2,F:G,1,0),VLOOKUP(A2+0,F:G,1,0))
    Please Login or Register  to view this content.
    Try this
    In your sheet, Column A is in Text Format and whereas Column F is in number format, that's why your formula is not working
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  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
    53,048

    Re: Why is this VLOOKUP not working? (Attached workbook)

    Happy to help, thanks for the feedback

+ 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. Vlookup with multiple criteria (Sample workbook attached)
    By swade730 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-26-2015, 01:20 PM
  2. DCOUNT function not working for me on the attached spreadsheet
    By mstone2112 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-14-2013, 12:56 PM
  3. Search Database Not Working See Attached Spreadsheet.
    By Hillster in forum Excel Programming / VBA / Macros
    Replies: 39
    Last Post: 09-21-2012, 12:47 PM
  4. Array Formula Not Working - Sample Attached
    By Excel"*" in forum Excel General
    Replies: 4
    Last Post: 08-13-2012, 04:48 PM
  5. [SOLVED] Attached File for UDF() formula not working
    By foxguy in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 04-17-2012, 01:46 AM
  6. Index Match not working - File attached
    By erumhyder in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-26-2011, 11:11 AM
  7. Vlookup info being used without vlookup table attached?
    By in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-25-2005, 07:06 AM

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