Formula to Extract month & Year

howard

Well-known Member
Joined
Jun 26, 2006
Messages
5,994
Office Version
  1. 2019
Platform
  1. Windows
I have the following text in cell F5 "TO 11/02P"

I would like a formula that will extract the month & year from this text to read in this example as Feb 2011

The year is the number directly after the text To in this example 11 being 2011 and the month
appears after the / i.e 02 in this example being Feb

Your assistance will be most appreciated
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.

njimack

Well-known Member
Joined
Jun 17, 2005
Messages
7,764
=TEXT(DATE(2000+MID(F5,4,2),MID(F5,FIND("/",F5)+1,2),1),"mmm yyyy")
 

howard

Well-known Member
Joined
Jun 26, 2006
Messages
5,994
Office Version
  1. 2019
Platform
  1. Windows
Hi Neil

Thanks for the help, much appreciated
 

Forum statistics

Threads
1,141,734
Messages
5,708,157
Members
421,549
Latest member
Dtcfire

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
Top