ExcelNewbie2020
Active Member
- Joined
- Dec 3, 2020
- Messages
- 354
- Office Version
- 365
- Platform
- Windows
I would like to extract the months per year from the given values in column A with different kind of scenarios.
Book1 | |||||
---|---|---|---|---|---|
A | B | C | |||
2 | GIVEN | EXPECTED RESULT | |||
3 | YYYYMM | 2020 | 2021 | ||
4 | 202001 | JANUARY | |||
5 | 202101 | JANUARY | |||
6 | 202001 & 202003 | JANUARY & MARCH | |||
7 | 202101, 202102, 202103 | JANUARY, FEBRUARY, MARCH | |||
8 | 202101 - 202110 | JANUARY - OCTOBER | |||
9 | 202001, 202004 - 202005 & 202012 | JANUARY, APRIL - MAY & DECEMBER | |||
Sheet2 |