Hello Team,
Would really appreciate your help on this (working on MAC):
Example:
Cell contains the following (letters and figures, no particular size or order of the words):
CODE-97 1340 : VARIETY P8039 BATCH Н-15-097/1465/2626709-931 BAGS; VARIETY P8521: BATCH Н-15-097/2030/2661313-166 BAGS, VARIETY P8039 BATCH Н-15-097/1465/2626712 1025 BAGS;
I need to extract product names (usually follows/precedes word "variety", "hybrid", "product", etc.) and corresponding number of bags (usually follows/precedes word "unit", "bag", etc.) into separate cells (ideally into separate rows for every variety/volume combination):
P8039 1956 (note: 1956=931+1025)
P8521 166
Regarding product names:
I can have the list of all potential product names, so product names can be extracted from the string by simply searching any words from my list of products. Important to note that same product name can be mentioned several times within one string/cell with different corresponding volumes.
Regarding volumes:
95% of the time should be whole numbers (no decimals). 95% of the time follows/precedes trigger words such as "bags", "units", etc. My thinking was to search for these trigger words from the list of trigger words and then compare the word/value following and preceding this trigger word and choose the whole number from the two. If there is a simpler way, would be great.
Thanks a lot in advance! This would be a huge help!
Would really appreciate your help on this (working on MAC):
Example:
Cell contains the following (letters and figures, no particular size or order of the words):
CODE-97 1340 : VARIETY P8039 BATCH Н-15-097/1465/2626709-931 BAGS; VARIETY P8521: BATCH Н-15-097/2030/2661313-166 BAGS, VARIETY P8039 BATCH Н-15-097/1465/2626712 1025 BAGS;
I need to extract product names (usually follows/precedes word "variety", "hybrid", "product", etc.) and corresponding number of bags (usually follows/precedes word "unit", "bag", etc.) into separate cells (ideally into separate rows for every variety/volume combination):
P8039 1956 (note: 1956=931+1025)
P8521 166
Regarding product names:
I can have the list of all potential product names, so product names can be extracted from the string by simply searching any words from my list of products. Important to note that same product name can be mentioned several times within one string/cell with different corresponding volumes.
Regarding volumes:
95% of the time should be whole numbers (no decimals). 95% of the time follows/precedes trigger words such as "bags", "units", etc. My thinking was to search for these trigger words from the list of trigger words and then compare the word/value following and preceding this trigger word and choose the whole number from the two. If there is a simpler way, would be great.
Thanks a lot in advance! This would be a huge help!