+ Reply to Thread
Results 1 to 4 of 4

Deleting Decimals From Text Fields

  1. #1
    Registered User
    Join Date
    03-04-2004
    Posts
    12

    Exclamation Deleting Decimals From Text Fields

    Could someone please advise me on how I should go about doing this?

    I have a number of cells (over 250,000 rows of data) with references like ABC0001 and ABC0001.01. The reference ending .01 refers to an amendment of a record and yet I want to link that reference to the original (ABC0001). I.e. I need to have a separate column which will lookup data based upon the original field.

    I therefore need to devise a formula that deletes the last 2 characters (and the decimal) if a decimal is found in a text field.

    Can anyone help please? I'm really stuck....

  2. #2
    Registered User
    Join Date
    10-27-2011
    Location
    Bay Area, California, USA
    MS-Off Ver
    Excel 2000
    Posts
    15

    Re: Deleting Decimals From Text Fields

    =left(a1,(find(".",a1,1)-1))

  3. #3
    Registered User
    Join Date
    03-04-2004
    Posts
    12

    Re: Deleting Decimals From Text Fields

    Thanks! That does work, but for those with original references (no decimals) it returns #VALUE!

    I could go and delete the formula from those that have this response, but might there be a better formula?

  4. #4
    Registered User
    Join Date
    10-27-2011
    Location
    Bay Area, California, USA
    MS-Off Ver
    Excel 2000
    Posts
    15

    Re: Deleting Decimals From Text Fields

    =if(iserror(find(".",a1,1)),a1,left(a1,(find(".",a1,1)-1)))

+ 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