Results 1 to 14 of 14

Add 0 to start of number if length is less than 5

Threaded View

  1. #1
    Forum Contributor
    Join Date
    03-04-2014
    Location
    Birmingham, England
    MS-Off Ver
    Excel 2019
    Posts
    758

    Add 0 to start of number if length is less than 5

    Hi all,

    I've attached a workbook with one sheet on it called "Survey Location Table".

    I am looking to add a 0 to front of any number, where the length of the value in an individual cell is less than 5 digits.

    The cells in question will be from Column D onwards.

    So where a number is 8774, as shown in Cell E10 then this should become 08774.

    This still applies if a number is 3 digits long, like shown in Cell E70 then this should become 0901.

    IF numbers are 5 digits long then nothing is to happen with them.


    Any one have any ideas?

    Many thanks,
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] How do i find smallest and largest number that start with specific number?
    By Ariful Islam in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-29-2021, 09:17 PM
  2. Replies: 2
    Last Post: 08-28-2021, 01:06 AM
  3. Length (count) of sequences with start and end condition
    By jake_jennings1 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-11-2020, 03:54 AM
  4. Use start and stop times (or length) to fill cells in between for schedules
    By soccer4ard in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-30-2016, 03:08 PM
  5. Calculating the length, start, and end dates of a series of events
    By CharlieDog in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-03-2014, 04:53 PM
  6. [SOLVED] Counting Partial Number Instances Within a Set Number Length.
    By MurasakiK in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-23-2013, 01:56 PM
  7. defining a years length(start and end dates)
    By wheefus in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-13-2008, 11:44 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