SOLVED
Home

Parsing 2 or 3 strings of text from a cell that are separated by "|"

%3CLINGO-SUB%20id%3D%22lingo-sub-754195%22%20slang%3D%22en-US%22%3EParsing%202%20or%203%20strings%20of%20text%20from%20a%20cell%20that%20are%20separated%20by%20%22%7C%22%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-754195%22%20slang%3D%22en-US%22%3E%3CP%3EExample%201%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EXXXXX%20%7C%20XXXXX%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EExample%202%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EXXXXX%20%7C%20XXXXX%20%7C%20XXXXX%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhere%20XXXXX%20is%20a%20varied%20string%20of%20text%20separated%20by%20the%20%22%7C%22%20symbol%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20need%20to%20be%20able%20to%20parse%20out%20each%20string%20of%20text%20into%20sequential%20cells%20in%20a%20row.%20%26nbsp%3BCurrently%20trying%20to%20use%20MID%2C%20LEFT%2C%20RIGHT%2C%20LEN%2C%20and%20IF%20in%20order%20to%20get%20around%20errors%20that%20would%20occur%20when%20a%20cell%20has%202%20strings%20of%20text%20instead%20of%203.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-754195%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-754216%22%20slang%3D%22en-US%22%3ERe%3A%20Parsing%202%20or%203%20strings%20of%20text%20from%20a%20cell%20that%20are%20separated%20by%20%22%7C%22%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-754216%22%20slang%3D%22en-US%22%3EThank%20you%20so%20very%20much!%20It%20worked%20like%20a%20charm!%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-754208%22%20slang%3D%22en-US%22%3ERe%3A%20Parsing%202%20or%203%20strings%20of%20text%20from%20a%20cell%20that%20are%20separated%20by%20%22%7C%22%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-754208%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F376218%22%20target%3D%22_blank%22%3E%40Daniel125%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20you%20have%20a%20column%20of%20cells%20to%20process%2C%20I%20suggest%20using%20the%20Data...Text%20to%20Columns%20menu%20item.%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3ESelect%20the%20cells%20to%20be%20parsed.%20They%20must%20be%20in%20a%20column%2C%20unfortunately.%3C%2FLI%3E%0A%3CLI%3EOpen%20the%20Data...Text%20to%20Columns%20menu%20item%2C%20and%20choose%20Delimited%20in%20the%20first%20step%20of%20the%20wizard.%20Click%20Next.%3C%2FLI%3E%0A%3CLI%3EIn%20the%20second%20step%20of%20the%20wizard%2C%20choose%20the%20pipe%20%7C%20symbol%20as%20the%20delimiter%20in%20the%20field%20next%20to%20%22Other%22.%20Click%20Next.%3C%2FLI%3E%0A%3CLI%3EIn%20the%20third%20step%20of%20the%20wizard%2C%20you%20may%20specify%20where%20you%20want%20the%20results.%20It%20defaults%20to%20write%20over%20the%20original%20column.%3C%2FLI%3E%0A%3CLI%3EClick%20Finish%3C%2FLI%3E%0A%3C%2FOL%3E%3C%2FLINGO-BODY%3E
Highlighted
Daniel125
New Contributor

Example 1:

 

XXXXX | XXXXX

 

Example 2:

 

XXXXX | XXXXX | XXXXX

 

Where XXXXX is a varied string of text separated by the "|" symbol

 

I need to be able to parse out each string of text into sequential cells in a row.  Currently trying to use MID, LEFT, RIGHT, LEN, and IF in order to get around errors that would occur when a cell has 2 strings of text instead of 3.

2 Replies
Solution

@Daniel125 

If you have a column of cells to process, I suggest using the Data...Text to Columns menu item.

  1. Select the cells to be parsed. They must be in a column, unfortunately.
  2. Open the Data...Text to Columns menu item, and choose Delimited in the first step of the wizard. Click Next.
  3. In the second step of the wizard, choose the pipe | symbol as the delimiter in the field next to "Other". Click Next.
  4. In the third step of the wizard, you may specify where you want the results. It defaults to write over the original column.
  5. Click Finish
Thank you so very much! It worked like a charm!
Related Conversations
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
flashing a white screen while open new tab
cntvertex in Discussions on
13 Replies
Tabs and Dark Mode
cjc2112 in Discussions on
22 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
28 Replies
description for autoplay blocking in settings page
HotCakeX in Discussions on
8 Replies