+ Reply to Thread
Results 1 to 4 of 4

How to add a digit "0" in the front of a number

  1. #1
    Registered User
    Join Date
    04-14-2015
    Location
    India
    MS-Off Ver
    2013
    Posts
    127

    How to add a digit "0" in the front of a number

    Hi everyone,

    I want to add 0 as a prefix to whole number column but the condition is the column contains numbers as well as text.
    I wanted to add zero in front of the number & do not want to add zero if the cell contains text.

    Any help will be appreciated.

    Regards,
    Vikas

  2. #2
    Registered User
    Join Date
    02-10-2015
    Location
    United Kingdom
    MS-Off Ver
    2010
    Posts
    25

    Re: How to add a digit "0" in the front of a number

    As per picture
    Attached Images Attached Images

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: How to add a digit "0" in the front of a number

    B1=if(ISNUMBER(A1)=TRUE,"0"&A1,A1)
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: How to add a digit "0" in the front of a number

    Apply custom formatting to the column, using this: "0"#
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

+ 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. How to add one digit "0" in the front of a number
    By wliong in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-05-2015, 09:16 AM
  2. List Data Validation + option of "INC"+12 digit number"
    By penfolda in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-29-2013, 02:53 AM
  3. SUMPRODUCT need to add " ' " in front of a digit?
    By Lewis Koh in forum Excel General
    Replies: 6
    Last Post: 04-22-2010, 09:24 AM
  4. Replies: 2
    Last Post: 08-22-2006, 04:30 PM
  5. Replies: 0
    Last Post: 09-06-2005, 02:05 AM

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