Textsplit and Sequence the month formatted as text

ExcelNewbie2020

Active Member
Joined
Dec 3, 2020
Messages
350
Office Version
  1. 365
Platform
  1. Windows
sirs,

i have a data in which the months is delimited by comma and a hypen.

i need a comma delimited to textsplit while the hypen to spill its sequence range and the year to spill to parallel column. please see below

Book1
CDE
3DATAFEBRUARY, MARCH, AUGUST - NOVEMBER 2021
4
5EXPECTED RESULTFEBRUARY2021
6MARCH2021
7AUGUST2021
8SEPTEMBER2021
9OCTOBER2021
10NOVEMBER2021
11
12
13
14
Sheet2
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Maybe this:
Book1
CDE
1
2
3DATAFEBRUARY, MARCH, MAY-JULY, AUGUST - NOVEMBER 2021
4
5FEBRUARY2021
6MARCH2021
7MAY2021
8JUNE2021
9JULY2021
10AUGUST2021
11SEPTEMBER2021
12OCTOBER2021
13NOVEMBER2021
Sheet4
Cell Formulas
RangeFormula
D5:D13D5=UPPER( DROP( REDUCE("",TEXTSPLIT(TEXTBEFORE(D3," ",-1),,", "),LAMBDA(a,b,VSTACK(a,LET(s,MONTH(1&TEXTSPLIT(b,"-")),TEXT(IFERROR(SEQUENCE(INDEX(s,2)-INDEX(s,1)+1,,INDEX(s,1)),s)&"/1900","mmmm")))) ),1,-1) )
E5:E13E5=--EXPAND(TEXTAFTER(D3," ",-1),ROWS(D5#),,TEXTAFTER(D3," ",-1))
Dynamic array formulas.
 
Upvote 0
Solution

Forum statistics

Threads
1,224,813
Messages
6,181,111
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