Extract value from string following word from defined list - multiple times within one cell

GK007

New Member
Joined
Jan 21, 2017
Messages
7
Hello team,

Would really appreciate your help on this:

Example:
Cell contains the following (letters and figures, no particular size or order):
CODE-97 1340 : VARIETY P8039 BATCH Н-15-097/1465/2626709-931 BAGS; VARIETY P8521: BATCH Н-15-097/2030/2661313-166 BAGS

I need to extract varieties and corresponding number of bags into separate cells:
P8039 931 P8521 166

Another complication is that "VARIETY" can sometimes be "HYBRID" and a few other names, same for "BAGS" (can be "UNITS" and a few other words).
So challenge is creating a formula that will check values from the provided list (VARIETY, HYBRID, ABS, BVC, etc.) and then extract value following it within the cell on MULTIPLE occasions (because we can have several per cell).

Thanks a lot in advance!
 
GK007,

If you are able to edit/add to the title, per the above, then, after you do that, start a new reply by trying the following:

Click on the Reply to Thread button, and just put the word BUMP in the thread. Then, click on the Post Quick Reply button, and someone else will assist you, with Mac experience.
 
Upvote 0

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK

Forum statistics

Threads
1,214,962
Messages
6,122,482
Members
449,088
Latest member
Melvetica

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top