Results 1 to 8 of 8

Converting text to numbers

Threaded View

  1. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Converting text to numbers

    Try this (assuming the values with () are supposed to be negative)

    =SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A2,",","."),"$",),CHAR(160),"")*1
    Does that work for you?

    EDIT: to avoid #Value errors
    =IF(A2<>"",SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A2,",","."),"$",),CHAR(160),"")*1,"")
    Last edited by ChemistB; 06-18-2012 at 05:14 PM.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

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