Solved

Formula to seperate date field

Posted on 2013-12-03
5
198 Views
Last Modified: 2013-12-03
Hi Experts

I have the date in column a row 3 as Dec 20, 2013...
But I would like to show it as Dec 20 only in col B3..
0
Comment
Question by:route217
[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
  • 4
5 Comments
 
LVL 33

Assisted Solution

by:Rob Henson
Rob Henson earned 334 total points
ID: 39692137
Do you want it actually converted to actually hold only day and month in the cell or purely show only the day and month.

The latter can be done easily with formatting, a custom format of "dd mmm" would do it. Apply to either column A or have formula in column B =A3 and then apply formatting to that.

For truncating to only day and month you would use:

=text(day(a3),"dd")&" "&text(month(a3),"mmm")

Thanks
Rob H
0
 
LVL 51

Assisted Solution

by:Rgonzo1971
Rgonzo1971 earned 166 total points
ID: 39692139
Hi,

If your date is a date and not a text

=TEXT(A3,"MMM DD")

Open in new window

Regards
0
 
LVL 33

Expert Comment

by:Rob Henson
ID: 39692143
Sorry, amendmen to that as it doesn't work:

=TEXT(A3,"dd")&" "&TEXT(A3,"mmm")
0
 
LVL 33

Accepted Solution

by:
Rob Henson earned 334 total points
ID: 39692147
Or as Rgonzo1971 suggests but with the format the other way round.

=TEXT(A3,"DD MMM")

Thanks
Rob H
Edit: My bad, Rgonzo had it right way round, apologies.
0
 
LVL 33

Expert Comment

by:Rob Henson
ID: 39692150
Along similar lines, correction to custom format suggestion would be "MMM DD"

Thanks
Rob H
0

Featured Post

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
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…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

726 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