convert to date

daveyc18

Well-known Member
Joined
Feb 11, 2013
Messages
707
Office Version
  1. 365
  2. 2010
so when i download data from a query,

the data column is 20201031 (ie 2020, october, 31). is there a way to convert this to a date format? i swear i remembeing doing it successfully once without having to use a formula...
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
You can do it with Text to columns & select YMD for the date style on page 3 of the wizard
 
Upvote 0
Use
Data TextToColumns Date YMD
N.B. I put dates in B4; you could use A4.
Format your dates to your preference.

or use the Formula


T202011a.xlsm
ABC
41920052525-May-192025-May-1920
51960031717-Mar-196017-Mar-1960
62020103131-Oct-202031-Oct-2020
72020033131-Mar-202031-Mar-2020
3b
Cell Formulas
RangeFormula
C4:C7C4=--TEXT(A4,"0000-00-00")
 
Upvote 0

Forum statistics

Threads
1,214,950
Messages
6,122,436
Members
449,083
Latest member
Ava19

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