+ Reply to Thread
Results 1 to 5 of 5

Number Stored as text - Tried every possible way

  1. #1
    Registered User
    Join Date
    03-07-2013
    Location
    india
    MS-Off Ver
    Excel 2003
    Posts
    7

    Number Stored as text - Tried every possible way

    Hi there,

    after importing the data from a report file, when used calculation got #value error. when checked found that the value in cells is not stored number, for this i used =isnumber() & =istext() formula.
    I searched the net, tried every solution I found but no solution for me. Please find the attached excel file and do something if you can.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: Number Stored as text - Tried every possible way

    Your numeric cells have 11 spaces preceeding digits: use =TRIM(B2)
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    03-07-2013
    Location
    india
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Number Stored as text - Tried every possible way

    protonleah perhaps ypu not read my problem. I tried every possible way... find below sheet after using =trim()
    Attached Files Attached Files

  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 Stored as text - Tried every possible way

    I think Ben missed the multiple , in your text. Try this....
    =TRIM(SUBSTITUTE(SUBSTITUTE(B2,"-",""),",",""))*1

    If the values are meant to be negative, use this...
    =TRIM(SUBSTITUTE(SUBSTITUTE(B2,"-",""),",",""))*-1.

    If there is a mix of pos and neg, use this...

    =TRIM(SUBSTITUTE(SUBSTITUTE(B2,"-",""),",",""))*IF(ISNUMBER(SEARCH("-",B2,1)),-1,1)
    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

  5. #5
    Registered User
    Join Date
    03-07-2013
    Location
    india
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Number Stored as text - Tried every possible way

    FDibbins many many thanks...its working.

    please take a look at my another post.....i'll be greatful

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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