+ Reply to Thread
Results 1 to 5 of 5

Change format for dollar amount

Hybrid View

  1. #1
    Registered User
    Join Date
    01-18-2005
    Posts
    6

    Change format for dollar amount

    I need to code a row to change the format of a dollar amount in each cell. In the end the dollar amount has to be exactly 10 characters, the dollar sign and the decimal need to be dropped but not the change.

    EXAMPLES:
    $1000.22 -converted to- 0000100022
    $100.55 -converted to - 0000010055

    I can get rid of the "$" and "." but not without the change being removed along with the decimal and I can add a "0" prefix but how do I get the decimal out and leave the change or get excel to calculate how many 0's need to be appended?

    I appreciate any help. Thanks in advance!

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259
    Hi Smoove,

    Back at it - again. Well you're almost there. Select the range you want to change format for. Click Format, Cells..., Number and go down to Custom. Type in ten Zeros: 0000000000

    That will do it. A very underutilized function of Excel.

    Best,
    Leith Ross

  3. #3
    Registered User
    Join Date
    01-18-2005
    Posts
    6
    Wow!! I thought I was going to need umpteen lines of complex code for that one.
    Thank you so much for your help!!!

  4. #4
    Registered User
    Join Date
    01-18-2005
    Posts
    6
    The change appears to get dropped off. I need to leave the decimal off but keep the change. Any ideas?

  5. #5
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259
    You're welcome. Glad I could help.

    Leith Ross

+ 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