Forum

Extracting the name...
 
Notifications
Clear all

Extracting the name of Month from Text In Power Query

5 Posts
2 Users
0 Reactions
148 Views
(@akrmatari)
Posts: 5
Active Member
Topic starter
 

Hi All,

I'm seeking the help of extracting the text (month contractions, e.g., Jan, Feb., etc.) from a text in Power Query so as to use it in further analysis. Please let me know if you have any ideas.

 

Short  text
Basic  June 2024 FSA
Blank June 2024 BSA
ADO May 2024 DCI
ADO NTA May 2024 FC
 
Posted : 06/08/2024 8:08 am
Riny van Eekelen
(@riny)
Posts: 1201
Member Moderator
 

Please elaborate and clarify what exactly you would want to extract from the example texts in your post.

 
Posted : 06/08/2024 10:12 am
(@akrmatari)
Posts: 5
Active Member
Topic starter
 

Thank you Riny..

I need to extract the name of the month out of a long text in order to use it for further analysis. And I need this to be by using power Query.
I attached an example.

 

Many thanks.

 
Posted : 07/08/2024 2:54 am
Riny van Eekelen
(@riny)
Posts: 1201
Member Moderator
 

Thanks for the file. If the texts are really as straight-forward as in your example, the easiest way would be to first extract everything before " 2024". Then, the month name can be extracted based on what comes after the first space as seen from the end. See attached.

If your real data isn't that simplistic, please upload a file with realistic texts.

 
Posted : 07/08/2024 4:38 am
(@akrmatari)
Posts: 5
Active Member
Topic starter
 

Thank you so much Riny, I shall give it a try and might revert back if I need support.

thanks

 
Posted : 09/08/2024 6:51 pm
Share: