+ Reply to Thread
Results 1 to 4 of 4

Converting Text to number issue

  1. #1
    Registered User
    Join Date
    03-14-2009
    Location
    Nottingham, England
    MS-Off Ver
    Excel 2003
    Posts
    10

    Converting Text to number issue

    Hi,

    I am currently trying to find an easy way to convert cell references to number format.

    The issue I'm having is when compiling a small formula (CONCATENATE) as part of a macro in order to produce a unique reference number to a column of data (1000's of cells long) I come accross the age old number stored as text issue after the macro has converted the formula to values.

    Have tried editing the macro to number stored as text = false which removes the annoying little red triangle but the vlookup functions still wont read the values. My current solution is to highlight the entirity of the data and convert to number which takes a long long time as there are multiple lookups assigned to the cells, which for my current project is not acceptable.

    Am looking for a quick solution, (with no interaction required) something that would convert the cells to the format required either before the formula is assigned and overwritten by values or just after. Currently I'm stumped.

    Any help most welcome and appreiciated!
    Last edited by Dr Mambo; 03-19-2009 at 05:29 AM. Reason: Spelling errors

  2. #2
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127

    Re: Converting Text to number issue

    It would be easier to help you if we could see a sample of your data and the code that you are working with.

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Converting Text to number issue

    use vlookup with &""

    =VLOOKUP(D1&"",A:B,2,FALSE) which will look up text from a real number in D1
    or if it's the other way around
    use vlookup with +0

    =VLOOKUP(D1+0,A:B,2,FALSE)
    which will look up a real number from text in D1
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Registered User
    Join Date
    03-14-2009
    Location
    Nottingham, England
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Converting Text to number issue

    Thanks... :-) works perfect!!

+ 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