Converting Text to Date

acool

Board Regular
Joined
Feb 10, 2023
Messages
107
Office Version
  1. 365
Platform
  1. Windows
Hi Everyone, I am currently trying to convert text in column A to date Format "YYYY-MMM" in proper format to pull for my pivot tables. Any help would be greatly appreciated. Thank You!
1700234899664.png
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
In column B you have the date, if you want another format, you can simply change it in the cell formats.


Libro1
AB
1START_DATEDate dd/mm/yyyy
22023-Jul01/07/2023
32021-Oct01/10/2021
42021-Nov01/11/2021
Hoja1
Cell Formulas
RangeFormula
B2:B4B2=DATEVALUE("1"&RIGHT(A2,3)&LEFT(A2,4))
 
Upvote 0
@DanteAmor Apologies for the confusing. My Values in column A are currently formatted as text. I would like to keep the same Layout (i.e YYYY-MMM) but in proper date format so that it is recognized by my pivot tables
 
Upvote 0
Apologies for the confusing. My Values in column A are currently formatted as text. I would like to keep the same Layout (i.e YYYY-MMM) but in proper date format so that it is recognized by my pivot tables
First you must convert that text to a date, that's what the formula is for.
Then you change the format of that date to the format you want, for example:


varios 17nov2023.xlsm
AB
1START_DATEDate dd/mm/yyyy
22023-Jul2023-jul
32021-Oct2021-oct
42021-Nov2021-nov
Hoja1
Cell Formulas
RangeFormula
B2:B4B2=DATEVALUE("1"&RIGHT(A2,3)&LEFT(A2,4))
 
Upvote 0

Forum statistics

Threads
1,215,068
Messages
6,122,950
Members
449,095
Latest member
nmaske

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