format date like this YYYYMMDD

I have a date in my excel spreadsheet that looks like this format 5/12/2015

how would i make it like this for all rows

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Guru JiCommented:
Just right click on the field and click Format Cell

Then select Custom and there you enter YYYYMMDD or YYYY/MM/DD

you can select all cells and change the format at same time too or use Format painter to do the job for you to apply to rest of the cells

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
Follow these steps....

Select the date range --> Right click on one of the selected cell --> Choose Format Cells --> Select Custom under Number category --> In the box below Type (where you see General by default, delete it) type yyyymmdd --> Click OK
ste5anSenior DeveloperCommented:
Just use a custom format:

Just use YYYYMMDD as format (mine is German localized).
Become a CompTIA Certified Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

ProfessorJimJamMicrosoft Excel ExpertCommented:
assuming your date is in A1 put this formula

=text(a1, "YYYYMMDD")
byundtMechanical EngineerCommented:
If the date in question won't change appearance when you change the format of the cells, then it is likely that the cell actually contains text that looks like a date. Actual dates are numbers--specifically the number of days since January 0, 1900.

If you want to convert a column of text that looks like dates into real dates (the kind you can reformat), then I suggest you use the Text to Columns menu item.
1. Select the cells with the dates to be converted. These must be in a single column.
2. On the Data ribbon, select the Text to Columns menu item
3. In the first step of the resulting wizard, choose Delimited as the type of data, then click Next
4. In the second step of the wizard, uncheck the boxes for any delimiters that are present in your "dates", then click the Next button.
5. In the third step of the wizard, choose Dates as the type, then specify whether the dates are in DMY or MDY format. Click Finish.
6. Format the cells with your desired YYYYMMDD format using the Custom number format menu item as discussed by the previous Experts
vbnetcoderAuthor Commented:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.