+ Reply to Thread
Results 1 to 4 of 4

Formatting cells to have leading and ending zeros

  1. #1
    Forum Contributor
    Join Date
    12-21-2004
    Location
    MN
    MS-Off Ver
    Microsoft 365
    Posts
    211

    Formatting cells to have leading and ending zeros

    We are working on importing a large budget with thousands and thousands of numbers and we have a specific format we need to follow in order for the import to work properly.
    Our managers keyed all the budgets into excel spreadsheets. We have a few areas where we are having problems with account codes, sub account codes, and dollars.
    Here is why?
    Account 0120.0110 will import as 120.011 and we can't do that. The notes say you cannot just format the cells as 4 digits, you have to key them that way.
    The dollar amount of 120.50 would come across as 120.5 and we need the zero on the end.
    Is there anything formula that would fix this issue, rather than re-keying MANY, MANY numbers?
    Thanks so much for any help you can offer me!
    Last edited by karstens; 10-24-2014 at 03:13 PM.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: Formatting cells to have leading and ending zeros

    Perhaps format as number with two decimals for dollar amounts and format as 0000.0000 for account numbers

  3. #3
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Formatting cells to have leading and ending zeros

    In a separate column use these

    For account numbers use
    =TEXT(A1,"0000.0000")

    For dollar amounts
    =TEXT(A1,"#.00")

    Copy this column and paste special values onto the original column. Does that help?
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  4. #4
    Forum Contributor
    Join Date
    12-21-2004
    Location
    MN
    MS-Off Ver
    Microsoft 365
    Posts
    211

    Re: Formatting cells to have leading and ending zeros

    A simple format will not work for this purpose as these numbers were already keyed and formatting the cell removes the zeros.
    These formulas worked great tho....so thank you![INDENT]In a separate column use these

    In a separate column use these

    For account numbers use
    =TEXT(A1,"0000.0000")

    For dollar amounts
    =TEXT(A1,"#.00")

    Copy this column and paste special values onto the original column. Does that help?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Preserve formatting Leading Zeros in CSV
    By rolta100 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-18-2014, 07:00 AM
  2. [SOLVED] Preserving leading zeros at cells
    By akotronis in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 08-22-2012, 08:30 AM
  3. Formatting a Number with leading zeros
    By btamulis in forum Excel General
    Replies: 7
    Last Post: 02-11-2012, 12:09 PM
  4. Formatting query, incremental values with leading zeros
    By shockeroo in forum Excel General
    Replies: 5
    Last Post: 04-08-2009, 08:28 AM
  5. [SOLVED] Leading Zeros-how would I customize the cells?
    By Karen in forum Excel General
    Replies: 3
    Last Post: 01-10-2006, 05:55 PM

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