AllExperts > Excel 
Search      
Excel
Volunteer
Answers to thousands of questions
 Home · More Excel Questions · Answer Library  · Encyclopedia ·
More Excel Answers
Question Library

Ask a question about Excel
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Richard Roberts
Expertise
Can assist you in most areas of Excel, have been working with it for about 15 years in many types of applications, but primarily in financial and accounting applications. I am a CPA and many client or client problems have necessitated the use of excel. I am not an expert in charting, macros, or pivot tables.

Experience
Have been working with Excel for about 15 years primarily in accounting and financial areas.

Education/Credentials
BA, CPA

 
   

You are here:  Experts > Computing/Technology > Microsoft Software > Excel > excel formatting

Excel - excel formatting


Expert: Richard Roberts - 2/2/2006

Question
Hello RICHARD,

I'm running Office 2003. In Excel, if someone sends me dates that are formatted in this manner: 20041225 (year, month, date) is there a way to convert this to look like 12/25/2004. I need to do this on a large scale. I would hate to have to do this one cell at a time.

Any help would be grateful!

Answer
Jerry

Since the formatting that you have, 20041225, isn't an accepted date format in excel 2003, we won't simply be able to reformat the cells to the 12/25/04 date format.  However we can use a methods to change the numbers so that they are in an acceptable date format.

First--you can use text to columns to separate the number into 4 columns, with 20 in the first column, 04 in the second column, 12 in the third column, and 25 in the fourth column.

Second you can then use a concatenate type formula to reassemble the number the way you want it to look.  for example.

=+C1&F1&D1&F1&G1&B1

Here is what we did
Used text to columns on the number as input into cell A1 to separate the number into 4 columns they were 20,4,12,25
in columns A,B,C,D respectfully.  Go to toolbar/text to columns/pick fixed width in the next window and click where you want the number separated then clic next, then clic finish.  This will separate the number, and you can do a wholde column of numbers at once.

Then use the formula
=+C1&F1&D1&F1&G1&B1

to put them back together in the order you want.   Note that in cell F1 I placed the backslash  '/  and in cell G1 I placed a zero.  The zero will have to be added back in front of the 4, because it is lost when converted to columns.

Hope this helps.

Richard  

Ask a Question


 
About Excel
This topic answers questions related to Microsoft Excel spreadsheet (or workbook) stand-alone or Mircrosoft Office Excel including Excel 2003, Excel 2007, Office 2000, and Office XP. You can get Excel help on Excel formulas(or functions), Excell macros, charting in Excel, advanced features, and the general use of Excel. This does not provide a general Excel tutorial nor the basics of using a spreadsheet. It provides specific answers to using Microsoft Excel only. If you do not see your Excel question answered in this area then please ask an Excel question here
User Agreement | Privacy Policy | Kids' Privacy Policy | Help
Copyright  © 2008 About, Inc. AllExperts, AllExperts.com, and About.com are registered trademarks of About, Inc. All rights reserved.