Results 1 to 2 of 2

Thread: Formula To Display Numbers In Custom Format

  1. #1
    Junior Member saied's Avatar
    Join Date
    Jan 2015
    Posts
    5
    Rep Power
    0

    Lightbulb Formula To Display Numbers In Custom Format

    hi i use this formoula =IF(LEN(A1)=1;"00"&A1;IF(LEN(A1)=2;"0"&A1;IF(LEN(A 1)=3;(A1)))) but when i have negative number the result is not correct you can see the example below
    116 79 92 143 223 -18 -2
    result

    116 079 092 143 223 -18 0-2

    desirable:

    116 079 092 143 223 -018 -002

  2. #2
    Administrator Admin's Avatar
    Join Date
    Mar 2011
    Posts
    1,123
    Rep Power
    10
    Hi

    Welcome to board!!

    You can custom format the cell itself. Right click on cell > format cells > Click custom on category and in type: 000 > OK

    or use this formula.

    =TEXT(A1;"000")
    Cheers !

    Excel Range to BBCode Table
    Use Social Networking Tools If You Like the Answers !

    Message to Cross Posters

    @ Home - Office 2010/2013/2016 on Win 10 (64 bit); @ Work - Office 2016 on Win 10 (64 bit)

Similar Threads

  1. Replies: 2
    Last Post: 09-06-2014, 09:38 AM
  2. Replies: 13
    Last Post: 08-03-2013, 05:58 PM
  3. Replies: 3
    Last Post: 04-05-2013, 08:24 AM
  4. Display numbers in Lakhs
    By Prabhu in forum Excel Help
    Replies: 3
    Last Post: 04-11-2012, 10:19 AM
  5. Display numbers in Lakhs
    By Prabhu in forum Excel Help
    Replies: 1
    Last Post: 01-29-2012, 02:18 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •