![]() |
Extracting text separated by | from string?
I need to extract text that looks like "|Acc - Lease, FAS 5, legal,
contingency & commit issues|Acc - Depreciation, depletion or amortization issues|Acc - Lease, leasehold & FAS 13 (98) (subcategory) issues|" without the quotes and this is the text from one cell. Another cell in the same column looks like "|Acc - Financial derivatives/hedging (FAS 133) acctg issues|Acc - Income statemt classification, margin and EPS issues|". As you can see, the cells have varying amounts of separated text - i.e. the first example has 3 and the second example has 2. I would like to be able to extract the text that is contained between each | into a list. I have access to all versions of excel. Any help would be so wonderfully appreciated. I can usually figure these functions out on my own, but this one has me stumped. |
Extracting text separated by | from string?
On Wed, 14 Jan 2009 19:38:00 -0800, JJFad
wrote: I need to extract text that looks like "|Acc - Lease, FAS 5, legal, contingency & commit issues|Acc - Depreciation, depletion or amortization issues|Acc - Lease, leasehold & FAS 13 (98) (subcategory) issues|" without the quotes and this is the text from one cell. Another cell in the same column looks like "|Acc - Financial derivatives/hedging (FAS 133) acctg issues|Acc - Income statemt classification, margin and EPS issues|". As you can see, the cells have varying amounts of separated text - i.e. the first example has 3 and the second example has 2. I would like to be able to extract the text that is contained between each | into a list. I have access to all versions of excel. Any help would be so wonderfully appreciated. I can usually figure these functions out on my own, but this one has me stumped. You could try Data/Text-to-columns Delimited with "|" set as the delimiter (in the Other box). --ron |
Extracting text separated by | from string?
Good thinking! That would work.
"Ron Rosenfeld" wrote: On Wed, 14 Jan 2009 19:38:00 -0800, JJFad wrote: I need to extract text that looks like "|Acc - Lease, FAS 5, legal, contingency & commit issues|Acc - Depreciation, depletion or amortization issues|Acc - Lease, leasehold & FAS 13 (98) (subcategory) issues|" without the quotes and this is the text from one cell. Another cell in the same column looks like "|Acc - Financial derivatives/hedging (FAS 133) acctg issues|Acc - Income statemt classification, margin and EPS issues|". As you can see, the cells have varying amounts of separated text - i.e. the first example has 3 and the second example has 2. I would like to be able to extract the text that is contained between each | into a list. I have access to all versions of excel. Any help would be so wonderfully appreciated. I can usually figure these functions out on my own, but this one has me stumped. You could try Data/Text-to-columns Delimited with "|" set as the delimiter (in the Other box). --ron |
Extracting text separated by | from string?
On Wed, 14 Jan 2009 20:27:05 -0800, JJFad
wrote: Good thinking! That would work. Post back if you continue to have a problem. --ron |
All times are GMT +1. The time now is 01:56 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com