trubertiam
New Member
- Joined
- Aug 12, 2009
- Messages
- 4
Hello everyone,
I have a .csv export file that contains description fields like the following (in A1):
<table border="0" cellpadding="0" cellspacing="0" width="383" height="160"><col width="383"><tr height="160"> <td class="xl63" style="height: 120pt; width: 287pt;" width="383" height="160">Experimentation for product and process improvement: response surface methodology and robust design methods; mixture experiments; optimal design topics; distribution theory and inference for linear models. <br/><em>
(RE) Prerequisite(s): 573 or consent of instructor. <br/>
Registration Restriction(s): Minimum student level - graduate.</em><br/></td> </tr></table>I need to parse this field into several fields depending on the type of prerequisite, co-requisite (not present in this example), or registration restriction. My goal is to extract the text following Prerequisite(s): and up to the "." into its own field. Same for any text following Registration Restriction(s): or any other restrictions that may appear in other entries.
I tried to create a formula for Prerequisites in Column B that went something like this:
=MID(A1,(FIND(“Prerequisite”,A1)-5),(FIND(".",A1)))
My intention is to find the text string "Prerequisite", start extracting 5 characters/spaces after the last "e", and extract everything up until the "." I've been adding and subtracting parentheses, wondering if I'm missing some or putting too many in. Or maybe there's something fundamentally wrong with this approach. I need to create similar columns for each type of restriction, so I'll eventually search for text strings like "Registration restriction" and "Co-requisite". I've seen some similar threads, so I hope it's ok to start a new one rather than jumping into an old one.
Any suggestions?
I have a .csv export file that contains description fields like the following (in A1):
<table border="0" cellpadding="0" cellspacing="0" width="383" height="160"><col width="383"><tr height="160"> <td class="xl63" style="height: 120pt; width: 287pt;" width="383" height="160">Experimentation for product and process improvement: response surface methodology and robust design methods; mixture experiments; optimal design topics; distribution theory and inference for linear models. <br/><em>
(RE) Prerequisite(s): 573 or consent of instructor. <br/>
Registration Restriction(s): Minimum student level - graduate.</em><br/></td> </tr></table>I need to parse this field into several fields depending on the type of prerequisite, co-requisite (not present in this example), or registration restriction. My goal is to extract the text following Prerequisite(s): and up to the "." into its own field. Same for any text following Registration Restriction(s): or any other restrictions that may appear in other entries.
I tried to create a formula for Prerequisites in Column B that went something like this:
=MID(A1,(FIND(“Prerequisite”,A1)-5),(FIND(".",A1)))
My intention is to find the text string "Prerequisite", start extracting 5 characters/spaces after the last "e", and extract everything up until the "." I've been adding and subtracting parentheses, wondering if I'm missing some or putting too many in. Or maybe there's something fundamentally wrong with this approach. I need to create similar columns for each type of restriction, so I'll eventually search for text strings like "Registration restriction" and "Co-requisite". I've seen some similar threads, so I hope it's ok to start a new one rather than jumping into an old one.
Any suggestions?