Parse text with different variables

Calicarrie

New Member
Joined
Nov 29, 2004
Messages
22
I am trying to parse some text values into 2 cells based on the "Name" and the "Size". Examples include:

PORT750ml/4pk
CHARDONNAY3L/o
WINE1.5L

Which would read as (separate cells):
PORT 750ml/4pk
CHARDONNAY 3L/o
WINE 1.5L

Since the "size" is variable and the "name" is not of consistent length, I am not sure how to automate this (preferably without a macro). I tried a "Left" function with "find" but the find function cannot include wildcards and the size is not standard.

Any ideas would be greatly appreciated!

Thanks!
 
From this workaround, I am to believe that there is no direct way to say, "Search/Find the first position of any of the following values within a string"?

No, there isn't, you could write a UDF that could do it, but with a native formula, no. The way I did it is typically the way it's done.
 
Upvote 0

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.

Forum statistics

Threads
1,225,149
Messages
6,183,186
Members
453,151
Latest member
Lizamaison

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