# Parse text from large string

Options
✭✭✭

@Paul Newcome - I've read a lot of your discussions throughout the years and you are the MAN! I have a question down below and hoping you can walk me through it. I'm simply not that good at this particular formula design.

I have a SF Connector setup and it pulls the below string. The total character length of the string is seldom the same for each row that comes in. I'm trying to parse certain information from this string. I feel like if I can get the formula down, I'd be off to the races.

To start, I just need (for now) the SUBTOTAL (which in the case below should be 630. Basically I need to find the subtotal, and then parse out the value (630).

• ✭✭✭✭✭✭
Options

Sorry my mistake the 160 shouldn't have been there it should have been start@row

Nested =MID(Text@row, FIND("SubTotal", Text@row, 1) + 11, FIND(CHAR(34), Text@row, FIND("SubTotal", Text@row, 1) + 11) - (FIND("SubTotal", Text@row, 1) + 11))

• ✭✭✭✭✭✭
Options

I did helper columns but you could nest it

Start =FIND("SubTotal", Text@row, 1) + 11

Length =(FIND(CHAR(34), Text@row, 160)) - Start@row

Subtotal =MID(Text@row, Start@row, Length@row)

• ✭✭✭
Options

It wasn't working until I replaced the "160" from your LENGTH equation with Start@Row. Then it worked FLAWLESSLY!!!!

What would a nested version of this look like? (I'm sorry I'm a bit of a noob when it comes to the equation side of the platform -- I've got dashboards and portals and workflows and automations covered, but I'm two left feet with complex nesting)

• ✭✭✭✭✭✭
Options

Sorry my mistake the 160 shouldn't have been there it should have been start@row

Nested =MID(Text@row, FIND("SubTotal", Text@row, 1) + 11, FIND(CHAR(34), Text@row, FIND("SubTotal", Text@row, 1) + 11) - (FIND("SubTotal", Text@row, 1) + 11))

• ✭✭✭✭✭✭
Options

That's pretty much how I would have done it as well.

• ✭✭✭
Options

SWEET! Thank you so much Paul I appreciate it!

## Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!