Extracting variable data based upon fixed criteria.

GGK

New Member
Joined
Oct 4, 2011
Messages
40
Hi,

I'm looking to create a spreadsheet where I can paste a large amount of data that is received from a notepad file (*.txt) and then create a formula that will take specific info from that pasted data and transfer it into a new cell.

In this example, I receive the following text file:

<SATURDAY VOTES="Michigan State 154, Houston 68, Washington 37, Texas Tech 25, Notre Dame 24, South Florida 22, Georgia 11, Penn State 9, USC 7, Southern Methodist 5, Cincinnati 1, Pittsburgh 1, Tennessee 1">
<oVERNIGHT VOTING>
<CALCULATING>
<SUNDAY VOTES="Michigan State 130, Houston 99, Washington 87, Texas Tech 45, Notre Dame 23, South Florida 17, Georgia 9, USC 4,;MAC=[one game left to play]">
<MONDAY VOTES="Michigan State 110, Houston 67, Washington 37, Texas Tech 25, Notre Dame 11;MAC=[Final Voting];Number1 team=[undecided]">
</Week 6>
</Calculate>


What I would like to do... is paste the Entire Text file in an Excel Cell and then be able to create a formula that extracts "specific data" that lies between 2 constants in the text file.

In this example.. I would like my new cell to display the info for MONDAYS VOTES... Specifically this new cell will only display the following:

Michigan State 110, Houston 67, Washington 37, Texas Tech 25, Notre Dame 11

So i'm only asking for the exact data that falls within the first " after MONDAYS VOTES="***************************; and up to.. but NOT including the ;

Thank you in advance for your help.

GGK
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
sorry... it looks like my text file didn't paste properly... this is the data that i receive and need to parse.

SATURDAY VOTES="Michigan State 154, Houston 68, Washington 37, Texas Tech 25, Notre Dame 24, South Florida 22, Georgia 11, Penn State 9, USC 7, Southern Methodist 5, Cincinnati 1, Pittsburgh 1, Tennessee 1"
*OVERNIGHT VOTING*
*CALCULATING*
SUNDAY VOTES="Michigan State 130, Houston 99, Washington 87, Texas Tech 45, Notre Dame 23, South Florida 17, Georgia 9, USC 4,;MAC=[one game left to play]"
MONDAY VOTES="Michigan State 110, Houston 67, Washington 37, Texas Tech 25, Notre Dame 11;MAC=[Final Voting];Number1 team=[undecided]"
Week 6
Calculate

------------------

So i'm only asking for the exact data that falls within the first " after MONDAYS VOTES="***************************; and up to.. but NOT including the ;

and this is what the NEW CELL should produce:

Michigan State 110, Houston 67, Washington 37, Texas Tech 25, Notre Dame 11

Thank you in advance for your help.

GGK
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,618
Messages
6,179,919
Members
452,949
Latest member
beartooth91

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