Solved

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

Posted on 2013-11-06
3
568 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 30

Accepted Solution

by:
gowflow earned 250 total points
ID: 39628008
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 30

Assisted Solution

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

Assisted Solution

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

or simply

=A1

and custom format it as mmdd
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

691 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