+ Reply to Thread
Results 1 to 3 of 3

Vlookup with different cell formats

  1. #1
    Registered User
    Join Date
    10-13-2015
    Location
    Wroclaw
    MS-Off Ver
    2003
    Posts
    7

    Vlookup with different cell formats

    Hi guys,

    when i try to vlookup numbers from the enclosed file i encounter errors. Strange is when i edit cells in data column and i hit enter, formula in vlookup column is working properly. I dont know how to format data and vlookup column to get all the results. Any help appreciated
    Attached Files Attached Files
    Last edited by lewap90; 11-04-2015 at 04:46 PM.

  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
    52,929

    Re: Vlookup with different cell formats

    Try this...
    =IFERROR(VLOOKUP(--I5,$A$2:$B$6000,2,0),VLOOKUP(TEXT(I5,0),$A$2:$B$6000,2,0))

    You have a mixture of both numbers, and text looking like numbers, in both columns, that is what is causing teh problem
    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
    Registered User
    Join Date
    10-13-2015
    Location
    Wroclaw
    MS-Off Ver
    2003
    Posts
    7

    Re: Vlookup with different cell formats

    it is working thank you so much but i dont know what "--" does before I5?? (--I5)

+ 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 different formats
    By Frodoe in forum Excel General
    Replies: 4
    Last Post: 10-06-2015, 04:24 AM
  2. [SOLVED] Vlookup cell formats dont match
    By lapot in forum Excel General
    Replies: 5
    Last Post: 07-23-2014, 09:01 AM
  3. Cell formats within VLOOKUP fuction.
    By meenadog in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-15-2007, 06:16 PM
  4. vlookup number formats (I think!)
    By bbuffum in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-11-2006, 12:32 PM
  5. [SOLVED] vlookup with date formats
    By Enron in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-20-2006, 11:30 AM
  6. [SOLVED] vlookup formats
    By CJRolls in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-09-2006, 11:35 AM
  7. Formats: Too many different cell formats error message
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-31-2005, 10:06 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