+ Reply to Thread
Results 1 to 3 of 3

numbers to text with correct charcter placement

  1. #1
    Registered User
    Join Date
    03-19-2004
    Posts
    6

    numbers to text with correct charcter placement

    I have a column of decimal numbers. I need them to be string text. In addition though, they need to be formatted correctly.

    Currently the numbers have a 0 in front of the decimal. The numbers can range from 0.0001 to 0.9999.

    Some of the numbers are like this: 0.03, 0.001, 0.0005, 0.5.

    I need to get rid of the decimal place, but have a four character string.

    So 0.0001 should result in '0001'
    and 0.03 should result in '0300'

    I used to do this stuff all the time but it has been WAY to long.

    Any help would be appreciated.

    ...Excel 2003

  2. #2
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,527
    Hi ftjjk,

    Here's a macro that will do the job - just change the references in the code to suit (I've made a note where to do this):

    Please Login or Register  to view this content.
    HTH

    Robert

  3. #3
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    A formula approach

    =TEXT(A1*1000,"0000")

    Then copy pastevalues from the formula output over the original data.


    rylo

+ 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