Convert Wed, Oct 28, 2009 to 20091028

beanzNY

New Member
Joined
Mar 21, 2011
Messages
13
imported from external source but it wont let me format the cell using format cell menu... anyone know how i can change it so it looks like 20091028 or essentially yyyymmdd
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Hello,

If your dates are always in ddd, mmm d, yyyy format, try this;

=TRIM(MID(A1,5,15))+0

Change the cell format to yyyymmdd
 
Upvote 0
ok i figured out how to format it... i didnt format to the yyyymmdd instead i formated it to mmddyy so the spreadsheet looks better however i need to be able to format the dates behind the scenes in 1 of my macros. i need to give 1 of my variables the value of the dates but need to convert it to the yyyymmdd so i can import data from a website that uses the yyyymmdd format for each page.
e.g. www.basketball-reference.com/boxscores/yyyymmdd/team_name.html
 
Upvote 0

Forum statistics

Threads
1,224,566
Messages
6,179,551
Members
452,927
Latest member
rows and columns

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