+ Reply to Thread
Results 1 to 4 of 4

Append .00 to a number

  1. #1
    Registered User
    Join Date
    05-15-2007
    Posts
    18

    Append .00 to a number

    Hi Guys,

    i'm trying to find a VBA script that will run on a selected column and add .00 to the end of a number in the cells that are populated.

    i.e

    0 would become 0.00 or 48 would become 48.00,

    i have tried using the cell format but that doesnt work once the file has been exported to a csv using a macro as it is Excel formatting not the actual data that is changed.

    thanks in advance

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Append .00 to a number

    Maybe a helper column containing =A1&".00" ?

  3. #3
    Registered User
    Join Date
    05-15-2007
    Posts
    18

    Re: Append .00 to a number

    thanks arthurbr that does work but then i need the macro to move the values from the helper column and replace the existing column as it needs to be in a specific order for the csv export is there a way to do that with a macro or is there a macro version of the helper column?

    regards

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Append .00 to a number

    Why not a Custom Number Format?
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ 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