Close to an extraction but not close enough

DSNTNOENUF

New Member
Joined
Aug 3, 2015
Messages
32
I have a very simplified version of a text string below. I am trying to use mid and find to extract the middle (Bold) data from the string.

Right now this formula would return the 123 and 1234567 of the below line items.

Can someone look at my formula and tell me how to make it count inward so many numbers of the of the carrot delimiter so that I can extract the data between it (5 I think in the actual file)? Text to column as a precursor is not an option because of complexity of the file.

=MID(INPUT!$C1,FIND("^",INPUT!$C1)+1,FIND("^",INPUT!$C1,FIND("^",INPUT!$C1)+1)-1-FIND("^",INPUT!$C1))


*^123^howdy duty^jovial
*^1234567^purdy^winter outside fun time^
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Here are two more, both for the string in A1

=MID(A1,FIND(CHAR(1),SUBSTITUTE(A1,"^",CHAR(1),2))+1,FIND(CHAR(1),SUBSTITUTE(A1,"^",CHAR(1),3))-FIND(CHAR(1),SUBSTITUTE(A1,"^",CHAR(1),2))-1)
and/or
=MID(MID(A1,3,99),FIND("^",MID(A1,3,99),1)+1,FIND("^",MID(MID(A1,3,99),FIND("^",MID(A1,3,99),1) + 1,255),1) - 1)
 
Upvote 0

Forum statistics

Threads
1,223,719
Messages
6,174,087
Members
452,542
Latest member
Bricklin

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