need excel formula or macro to convert date

pra123

New Member
Joined
Nov 13, 2005
Messages
2
Hello everybody,

I have a excel sheet containing around 10,000 records.
There is a column called popstartdate containing date in dd/mm/yyyy format.
Now i want popstartdate to be converted to mm/dd/yyyy format.
That is i want all 10,000 records to be converted from dd/mm/yyyy to mm/dd/yyyy format.

How to write macro or any formula for this.

Regards
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Good morning pra123

Jst go to your cells format diaog for the range (ctrl + 1) and change the number format to Custom, mm/dd/yyyy.

HTH

DominicB
 
Upvote 0
Hi, Welcome to the board!

Try:

1) highlight the column
2)Format / Cells / custom and enter 'mm/dd/yyyy' (without the quotes) into the 'Type' field
 
Upvote 0
Thanks for ur reply.

But formatcells->custom->mm/dd/yyyy is effected only for first record.
I want it to be effected to all 10,000 records.
So how to do this.
How to select range from first to last record?

Regards
 
Upvote 0

Forum statistics

Threads
1,222,143
Messages
6,164,175
Members
451,880
Latest member
2da

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top