Forum Discussion
cerebro
3 years agoHelper I
Check if column text contains values from another column and return the text
Dear everybody, I have two different sources and i would like to search for the project number from the second source in the account from the first source and return the project in the custom col...
- 3 years ago
Hi cerebro
Yes, you can use Text.BetweenDelimiters to extract just the 4 digits between the - -
= Text.Select(Text.BetweenDelimiters([Account], "-", "-"), {"0".."9"})Regards
Phil
cerebro
3 years agoHelper I
thank you for the elegant solution.
Yes in fact, there are some other numbers that do not represent a project number and if you replace any letter with a number, the second formula doesnt work anymore:
Can you fix it? Thanks again!
PhilipTreacy
3 years agoSuper User
Hi cerebro
Yes, you can use Text.BetweenDelimiters to extract just the 4 digits between the - -
= Text.Select(Text.BetweenDelimiters([Account], "-", "-"), {"0".."9"})
Regards
Phil
- cerebro3 years agoHelper I
sorry to bother you again, but could you please edit the formula that it returns a match even when the project number is not in the middle of the text string ? thanks again for your help!