Formula to Extact month and year in Textt after "to" in the text

howard

Well-known Member
Joined
Jun 26, 2006
Messages
5,743
Office Version
  1. 2019
Platform
  1. Windows
I would like a formula to extract the month and full year after "to" in the text below


Trial Balance : 01/09/19 to 31/08/20 - Last Year

It should be August 2020

It would be appreciated if someone could assist me
 

Some videos you may like

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.

etaf

Well-known Member
Joined
Oct 24, 2012
Messages
4,575
Office Version
  1. 365
Platform
  1. MacOS
=MID(A2,FIND("to",A2,1)+3,8)*1
Assumes that the date format is always 8 characters and has leading zeros
Then you can format that cell as MONTH & YEAR = MMMM YYYY

so you can still use the cell as a date
IF you just want TEXT output
=TEXT(MID(A2,FIND("to",A2,1)+3,8)*1,"MMMM YYYY")
BUT you will not longer use that cell as a date for any manipulation
 

howard

Well-known Member
Joined
Jun 26, 2006
Messages
5,743
Office Version
  1. 2019
Platform
  1. Windows
Many thanks for the help
 

etaf

Well-known Member
Joined
Oct 24, 2012
Messages
4,575
Office Version
  1. 365
Platform
  1. MacOS
you are welcome
 

Watch MrExcel Video

Forum statistics

Threads
1,127,099
Messages
5,622,696
Members
415,921
Latest member
ExcelGeek5038

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