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

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.

etaf

Well-known Member
Joined
Oct 24, 2012
Messages
4,580
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,580
Office Version
  1. 365
Platform
  1. MacOS
you are welcome
 

Watch MrExcel Video

Forum statistics

Threads
1,127,355
Messages
5,624,212
Members
416,017
Latest member
moritz210

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