I am having a little bit of trouble trying to come with a solution for my problem, I have a table where one of the columns has texts like:
What I need to do is to compare the text part and the (6bl) part. and if everything is the same but the year is different, in the new column I need to flag them. My problem is, I couldn't find a good way to extract the year out of this string, and also, if you realize in the text that is in red, some of the parenthesis are not being closed. The table is huge, so I just would like some idea on how to tackle this project.
My final output could be something like:
Is there any way to achieve that through formulas or VBA?
This is one text 2019 |
This is one text 2020 |
This is one product 2018 (6bl |
This is one product 2020 (6bl) |
This is a pain 2020 (6bl) |
This is a pain 2021 (6bl) |
This is hard (6bl) 2017 |
This is hard (6bl) 2018 |
This is lack of creativity (12x6) 2014 |
This is lack of creativity (12x6) 2015 |
This is the last example (With explanation) and more text 2020 |
This is the last example (With explanation) and more text 2022 |
What I need to do is to compare the text part and the (6bl) part. and if everything is the same but the year is different, in the new column I need to flag them. My problem is, I couldn't find a good way to extract the year out of this string, and also, if you realize in the text that is in red, some of the parenthesis are not being closed. The table is huge, so I just would like some idea on how to tackle this project.
My final output could be something like:
This is one text | 2019 | |
This is one text | 2020 | |
This is one product | 2018 | 6bl |
This is one product | 2020 | 6bl |
This is a pain | 2020 | 6bl |
This is a pain | 2021 | 6bl |
This is hard | 2017 | 6bl |
This is hard | 2018 | 6bl |
This is lack of creativity | 2014 | 12x6 |
This is lack of creativity | 2015 | 12x6 |
This is the last example (With explanation) and more text | 2020 | |
This is the last example (With explanation) and more text | 2022 |
Is there any way to achieve that through formulas or VBA?