+ Reply to Thread
Results 1 to 4 of 4

Number is in odd format

  1. #1
    Registered User
    Join Date
    12-19-2013
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    2

    Number is in odd format

    Hello,

    I am getting a generated report from a customers website that i wish to extract data from
    The column i wish to work with is an ID eg. 10001702 that i wish to use in a VLOOKUP.

    The problem is the number is in an odd format, text or something so when i try to VLOOKUP it cannot recognize the number
    Left justified like text instead of right justified like a number
    clicking format cells and changing to number does not solve the issue

    if i click on the cell containing the number, then click on the formula bar, then press enter, it will become a number. While this works its still a tedious method.

    Is there a way i can find out how the number is formatted so i can set the vlookup to search for that?
    or
    is there a way i can add another column to in which it converts the number into a number format.
    or any other solutions?

    Hope people can follow that.

    Thanks for any help
    Last edited by Gaveon; 12-19-2013 at 10:30 PM.

  2. #2
    Forum Contributor noboffinme's Avatar
    Join Date
    08-29-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003/7/10/13/16/19
    Posts
    1,071

    Re: Number is in odd format

    Hi Gaveon,

    Try adding a new column that multiplies your value by 1.

    So the Formula for a value in 'A2' would be;

    =A2*1

    This will convert it into a number.

    Do this to both & the VLOOKUP should work.

    Hth
    Remember you are unique, like everyone else

  3. #3
    Registered User
    Join Date
    12-19-2013
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Number is in odd format

    That did the trick.

    Thankyou very much

  4. #4
    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: Number is in odd format

    Hi and welcome to the forum

    Another way to do this without a helper, is to highlight the entire range of "numbers", scroll back to the top, and if you look at the 1st cell that you highlighted, you will see a small yellow diamond - click on it and select "convert to text"

    If this is going to be a frequent problem, convert the value you are trying to find, to text...=vlookup(TEXT(A2,"#"),range,column,0)
    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

+ 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] Set local number format from Dutch format Number
    By JimmyA in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-23-2012, 07:40 AM
  2. How to change a - number format to a positive number format ?
    By leanne2011 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-25-2011, 10:14 AM
  3. Replies: 1
    Last Post: 05-18-2006, 11:45 PM
  4. Replies: 2
    Last Post: 11-11-2005, 09:05 AM
  5. Number format based on number format of another cell in another workbook
    By Rob in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-09-2005, 01: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