Solved

How to best convert Excel date to MMDD in another cell?

Posted on 2013-11-06
3
510 Views
Last Modified: 2013-11-06
I currently have an Excel document with a column of dates. I need to end up with a new column that has the date (only month and day) in 4 digits, and must include leading 0s. I'm able to extract the day and month in separate columns using the relevant functions (day/month) and can add the leading 0 by changing the format.

However, when I attempt to concatenate the two fields, the leading 0s drop out. Is there any way to accomplish what I need?

Thanks!
0
Comment
Question by:jalant
  • 2
3 Comments
 
LVL 29

Accepted Solution

by:
gowflow earned 250 total points
Comment Utility
if your date is in A1 then put this in B1
=TEXT(MONTH(A1),"00") & TEXT(DAY(A1),"00")

and drag downward. if you need ddmm just use this
=TEXT(DAY(A1),"00") & TEXT(MONTH(A1),"00")

gowflow
0
 
LVL 29

Assisted Solution

by:gowflow
gowflow earned 250 total points
Comment Utility
here is a sample MMDD
gowflow
DatesMMDD.xls
0
 
LVL 43

Assisted Solution

by:Saqib Husain, Syed
Saqib Husain, Syed earned 250 total points
Comment Utility
=TEXT(A1,"mmdd")

or simply

=A1

and custom format it as mmdd
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Indirect formula 9 29
Slight Modification to Macro 2 14
When a VBA code will not work in Excel 64bit? 2 17
Add macros on Open 9 29
Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now