aturday, March 16th, 2024 to MM/DD/YY?

charlesstricklin

Board Regular
Joined
May 6, 2013
Messages
98
Office Version
  1. 2021
Platform
  1. Windows
I give up! I've been trying to convert a date, say A2 as Saturday, March 16th, 2024 in a text format, to an actual date in the format of MM/DD/YY?

P.S. Better yet, how to convert date in two cells, say B2 and C2 containing the month, i.e. 3 in the example above, and 16 also in the example above?
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Format to your preference
You can use find and build the mid function to put information into the Date function or look at the information and compose the function.

T240203a.xlsm
AB
1
2Saturday, March 16th, 202445367
311
4
2b
Cell Formulas
RangeFormula
B2B2=DATE(RIGHT(A2,4),MONTH("1-"&MID(A2,11,5)),MID(A2,17,2))
B3B3=FIND(",",A2)+2
 
Upvote 0
See if any of these help.

24 03 18.xlsm
ABCDE
1DateMonthDay
2Saturday, March 16th, 202416/03/2024316
3Monday, May 1st, 20231/05/202351
Dates
Cell Formulas
RangeFormula
D2:D3D2=MONTH(1&MID(SUBSTITUTE(A2," ",REPT(" ",50)),50,50))
E2:E3E2=--MID(A2,FIND(",",A2,11)-4,2)
B2:B3B2=DATE(RIGHT(A2,4),MONTH(1&MID(SUBSTITUTE(A2," ",REPT(" ",50)),50,50)),MID(A2,FIND(",",A2,11)-4,2))
 
Upvote 1
Solution
See if any of these help.

24 03 18.xlsm
ABCDE
1DateMonthDay
2Saturday, March 16th, 202416/03/2024316
3Monday, May 1st, 20231/05/202351
Dates
Cell Formulas
RangeFormula
D2:D3D2=MONTH(1&MID(SUBSTITUTE(A2," ",REPT(" ",50)),50,50))
E2:E3E2=--MID(A2,FIND(",",A2,11)-4,2)
B2:B3B2=DATE(RIGHT(A2,4),MONTH(1&MID(SUBSTITUTE(A2," ",REPT(" ",50)),50,50)),MID(A2,FIND(",",A2,11)-4,2))
The month works spot on, the day and the short date are one more than they should be? o_O
 
Upvote 0

Forum statistics

Threads
1,224,818
Messages
6,181,152
Members
453,021
Latest member
Justyna P

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