Excel leading zero for day and month

Frank C

Member
Hi
In Excel, I want to get a leading zero on a numeric day and month entries for sort.
I have separate columns for year, month and day.
I have tried many formats without success. If I format as text with a leading zero I get a warning that a number is stored as text and the sort is incorrect.
Does anyone have a suggestion?
Thanks
Frank C
 

My Computer

Hi,

You can use a custom format & from the dd/mm/yyyy format use only the dd part.

When you insert a date you will get the first two digits for the day. It is the same for a month (mm) & year (yyyy) or (yy)

i.e 23/03/2012 = 23
or 01/03/2012 = 01

OK?
 
Last edited:

My Computer

System One

  • Manufacturer/Model
    HP-Pavilion m9280.uk-a
    CPU
    2.30 gigahertz AMD Phenom 9600 Quad-Core
    Motherboard
    ASUSTek Computer INC. NARRA3 3.02
    Memory
    3582 Megabytes Usable Installed Memory (4 Gig)
    Graphics card(s)
    ASUS NVIDIA Geforce GTS450
    Sound Card
    Realtek High Definition 7.1 Audio (HP drivers)
    Monitor(s) Displays
    HP w2408 24.0" (Dual monitor)
    Screen Resolution
    1920 * 1200, 1920 * 1200
    Hard Drives
    3*500 Gigabytes Usable Hard Drive Capacity Plus 2x USB (160Gig each) external HDD BluRay & DVD Weiters HL-DT-ST BD-RE GGW-H20L SCSI CdRom (Bluray RW) Device AlViDrv BDDVDROM SCSI CdRom (Blueray) Device TSSTcorp CDDVDW TS-H653N SCSI CdRom
    Internet Speed
    40 Meg
Thanks Lottie
I tried your suggestion with no success. I don't understand the custom approach. I also tried formating the date in one column as dd/mm/yyyy. That did not sort properly either.
Frank C
 

My Computer

Hi,

Please post a picture of the excel spread sheet & explain the cell contents & cell formating.

If possible/ appropriate post the file & I will look at it. This will enable me to advise further. OK?

See if these files help you to solve the problem? Please watch the video first!
 
Last edited:

My Computer

System One

  • Manufacturer/Model
    HP-Pavilion m9280.uk-a
    CPU
    2.30 gigahertz AMD Phenom 9600 Quad-Core
    Motherboard
    ASUSTek Computer INC. NARRA3 3.02
    Memory
    3582 Megabytes Usable Installed Memory (4 Gig)
    Graphics card(s)
    ASUS NVIDIA Geforce GTS450
    Sound Card
    Realtek High Definition 7.1 Audio (HP drivers)
    Monitor(s) Displays
    HP w2408 24.0" (Dual monitor)
    Screen Resolution
    1920 * 1200, 1920 * 1200
    Hard Drives
    3*500 Gigabytes Usable Hard Drive Capacity Plus 2x USB (160Gig each) external HDD BluRay & DVD Weiters HL-DT-ST BD-RE GGW-H20L SCSI CdRom (Bluray RW) Device AlViDrv BDDVDROM SCSI CdRom (Blueray) Device TSSTcorp CDDVDW TS-H653N SCSI CdRom
    Internet Speed
    40 Meg
Thanks Lottie,
I reluctantly changed to English US format MM/DD/YYYY in one column that meant that I had to transpose the month and day. That column DID sort properly. No leading zeros on month or day I will live with that solution.
When I get some time I will try the English Canadian format with the entire date in one column (YYYY-MM-DD) this makes more sense to me than the English US format.
Frank C
 

My Computer

OK,

Glad you have made some progress & I wish you well in your ventures.

Paul H.
 

My Computer

System One

  • Manufacturer/Model
    HP-Pavilion m9280.uk-a
    CPU
    2.30 gigahertz AMD Phenom 9600 Quad-Core
    Motherboard
    ASUSTek Computer INC. NARRA3 3.02
    Memory
    3582 Megabytes Usable Installed Memory (4 Gig)
    Graphics card(s)
    ASUS NVIDIA Geforce GTS450
    Sound Card
    Realtek High Definition 7.1 Audio (HP drivers)
    Monitor(s) Displays
    HP w2408 24.0" (Dual monitor)
    Screen Resolution
    1920 * 1200, 1920 * 1200
    Hard Drives
    3*500 Gigabytes Usable Hard Drive Capacity Plus 2x USB (160Gig each) external HDD BluRay & DVD Weiters HL-DT-ST BD-RE GGW-H20L SCSI CdRom (Bluray RW) Device AlViDrv BDDVDROM SCSI CdRom (Blueray) Device TSSTcorp CDDVDW TS-H653N SCSI CdRom
    Internet Speed
    40 Meg
Back
Top