Katiedfuller
New Member
- Joined
- Jun 4, 2015
- Messages
- 4
Hi,
I've spent months trying to research a solution to my problem and after reading another post from your site that was very helpful for a different issue, I thought maybe you can help me.
In A2, there are a list of headers followed by descriptions, one-after-the-other. For example, I have the following:
House Main Color|Red Brick|House Trim Color|White|Driveway Dimensions|15 feet|Year Built|1997
In A3, I have the same, but new headers may appear and the order of the headers may shift:
House Trim Color|Green|House Main Color|White|# Front Windows|7|Year Built|1997
In B1, C1, D1, E1, and F1 I have predefined column headers:
B1 = House Main Color
C1 = House Trim Color
D1 = Driveway Dimensions
E1 = Year Built
F1 = # Front Windows
I would like for B2 to search A2 for the predefined header in B1 and return the string of text between the two | delimiters that directly follow the found B1 header in A2. If no header is found, it should return a blank. Then, C2 should search A2 for the predefined header in C1 and return the string of text between the two | delimiters that direclty follow the found C1 header in A2. If no header is found, it should return a blank. Etc., Etc., for D2, E2, and F2.
Qualifiers: The predefined headers will often appear in different places in the string of text for A2. However, the information I need returned will always appear between the two | delimiters DIRECTLY following the found predefined header in A2.
Text-to-Columns isn't helpful as the order variance causes issues.
Can you help?
Thank you!
I've spent months trying to research a solution to my problem and after reading another post from your site that was very helpful for a different issue, I thought maybe you can help me.
In A2, there are a list of headers followed by descriptions, one-after-the-other. For example, I have the following:
House Main Color|Red Brick|House Trim Color|White|Driveway Dimensions|15 feet|Year Built|1997
In A3, I have the same, but new headers may appear and the order of the headers may shift:
House Trim Color|Green|House Main Color|White|# Front Windows|7|Year Built|1997
In B1, C1, D1, E1, and F1 I have predefined column headers:
B1 = House Main Color
C1 = House Trim Color
D1 = Driveway Dimensions
E1 = Year Built
F1 = # Front Windows
I would like for B2 to search A2 for the predefined header in B1 and return the string of text between the two | delimiters that directly follow the found B1 header in A2. If no header is found, it should return a blank. Then, C2 should search A2 for the predefined header in C1 and return the string of text between the two | delimiters that direclty follow the found C1 header in A2. If no header is found, it should return a blank. Etc., Etc., for D2, E2, and F2.
Qualifiers: The predefined headers will often appear in different places in the string of text for A2. However, the information I need returned will always appear between the two | delimiters DIRECTLY following the found predefined header in A2.
Text-to-Columns isn't helpful as the order variance causes issues.
Can you help?
Thank you!