microsoft excel courses london - converting date format
Microsoft Office Training verified by visa - mastercard securecode about microsoft training company london ukadd this page to your favourites/bookmarksAdd to favourites
view a printable version of this pagePrintable version
email this page to somebodyEmail this page
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Excel Training and help » microsoft excel courses london - Converting Date Format

microsoft excel courses london - Converting Date Format

The UK's most regular instructor-led training courses.
Training information: microsoft excel courses london · Excel-courses-london · Microsoft Excel Training London
See also · excel-courses-london · excel courses in london · excel microsoft training

resolvedResolved · Low Priority · Version Standard

Converting Date Format

Cecelia has attended:
Excel VBA course

by - delegate Cecelia [4 posts] (2006 Nov 22 Wed, 12:11) replyReply

My question sounds quite silly- I’m looking for a way to convert the date format from "mmm-dd-yy" to "dd-mmm-yy" efficiently. For example, given a date 05/13/2006, it's clearly in month/day/year format rather than day/month/year. The "format--> cells-->custom-->mmm-dd-yy" with Excel does not recognize it because it assumes it’s in day/month/year and can not find the 13th of month in a year; it can not convert it into May-13-2006. If one gets only a handful of dates which need to be converted, it can be done manually (simply just type in 13/05/2006). But if there’re over 1,000 of dates, it’s really time consuming. I tried to write a function/procure to achieve this “simple” goal without success.
Could you please help? Many thanks for your time.

Excel VBA 2 day course
Version Date Location Places
available
Book Next place rate:
Card Invoice
2003 2008 Sep 8 Mon + 9 Tue Bayswater 2 book now £495 £495
2003 2008 Sep 18 Thu + 19 Fri Bloomsbury 1 book now £495 £495
2003 2008 Sep 25 Thu + 26 Fri Southwark 3 book now £475 £495
2003 2008 Oct 6 Mon + 7 Tue Bayswater 4 book now £475 £485
2007 2008 Oct 13 Mon + 14 Tue Bayswater 3 book now £475 £495
2003 2008 Oct 23 Thu + 24 Fri Southwark 4 book now £475 £485
Full Schedule: See all 44 Excel VBA course dates.
Bookings currently available until 26th November 2009.

RE: Converting Date Format

by - trainer Tom [20 posts] (2006 Nov 23 Thu, 11:55) replyReply

Hi Cecelia

Not a silly question at all. Your challenge is to get a the month/day/year arrangement into day/month/year this can be done using the the text functions to Left, Mid and Replace along with & for concatenation or joining together.

First you need to format the column or rows that contain the dates to a day/month/year format. The custom format for this in the type box is dd mm yyyy.

Your cell values that you want to change must be in the mm/dd/yyyy meaning your formula bar should show the value in that format

This is very import because you willl next need to convert your date into that order ie. May 15 2006 is "05/15/2006" in old format however you need it the other way around "15/05/2006".

The folowing steps take place in a seperate cells of course it coud be done as a string in VBA

First step is to use the LEFT function to extract the month ie. "05"(check your function wizard for the arguements used in this function.
This function then needs to be nested in the REPLACE function to replace where the day "15" and the day text is located by using the MID function to place it at the start.

Now you can concatenate with the "&" to rest of the date order dd/mm/yyyy using MID to exact the rest as individual components in the right order

At this stage it is still a text string. To convert it into a value that excel can recongnise as a date use VALUE to encase the whole formula in.

The whole formula is below using b4 as the cell with incorrect date format

=VALUE((REPLACE((LEFT(B4,2)),1,2,MID(B4,4,2))&"/"&MID(B4,1,2)&"/"&MID(B4,7,6)))

I hope this has been of assistance

Regards


BEST Training

RE: Converting Date Format

by - delegate Cecelia [4 posts] (2006 Dec 6 Wed, 09:50) replyReply

Many thanks, very clear and helpful indeed!


Related articles

· Customized Financial Excel Courses in London
· How to Create Better Excel Spreadsheets: Part One
· How to check for and reduce errors in Microsoft Excel
· Basic Excel Training
· Microsoft Excel's Best Kept Secret

Excel tip:

Adding up time greater than 24 hours

When you add up time if it exceeds 24 hours i.e 27 hours appears as 03:00. Go to Format / Cells / Number / Custom. The format is hh:mm but if change it to [hh]:mm it will add up to the correct amount of hours.

View all Excel hints and tips

Institute of IT Training - Accredited Training Provider Microsoft Certified Partner
microsoft office
Microsoft Office Specialist Authorised Testing Centre (MOS and MCAS)

Prodigy Platinum Learning Partner

Institute of IT Training - Accredited Training Provider Association of Computer Trainers Valid HTML 4.01 Transitional
Valid CSS Markup

secure online payments - visa - mastercard

Mini sitemap. These are the main areas of our web site. Full sitemap.

Training by application Main information pages See also

Access courses
DreamWeaver courses
Excel courses
MS Project courses
Outlook courses
PowerPoint courses
VBA courses
Word courses
(more...)

Public scheduled courses
On-site training
Closed company courses

Microsoft Office training
Pricing and availability
Training schedule
Training venues

Access training
Dreamweaver training
Excel training
MS Project training
PowerPoint training

London Computer Training
Computer Training London

Microsoft Access training
Microsoft Excel training
Microsoft Project training
Microsoft Outlook training
Microsoft Powerpoint training
Microsoft Word training

Time Management Course London

Interested in Access training? Please see the following pages:
microsoft access courses · microsoft training access course
microsoft+access+training · access courses in london

Training Information
AddThis Social Bookmark Button What's this?
Add to Del.icio.us Add to Facebook Add to Digg Add to Reddit Add to Google Add to Yahoo Add to Diigo Add to Mr. Wong Add to Linkarena Add to Power Oldie Add to Folkd Add to Jumptags Add to Upchuckr Add to Simpy Add to StumbleUpon Add to Slashdot Add to Netscape Add to Furl Add to Spurl Add to Blinklist Add to Blogmarks Add to Technorati Add to Newsvine Add to Blinkbits Add to Ma.Gnolia Add to Smarking Add to Netvouz