IF CONT. REPLACE - If a portion of the string before comma has no space, then repeat it
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi everyone, I would love so help with an expression. I have attached a spreadsheet which outlines the input, desired output, and an approach I am considering. Here is a summary of the issue (which is the same as what is in Excel too)
One approach I am thinking of is:
After applying the "+" delimiter to parse out the data to the following, add a formula to the data such that, if there is no space before the comma, the original string (e.g., "TCL") repeats itself with a space in between (following the same example, it becomes "TCL TCL").
If anyone could please provide some pointers with the expression I would really appreciate it. If you have another easier approach, I would love to hear it too. Thank you so much!!
Solved! Go to Solution.
- Labels:
- Data Investigation
- Datasets
- Expression
- Parse
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@erinylai One way of doing this, not the prettiest side, did lots of Regex to re-arrange the input string to make the parse easy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi binuacs, really appreciate your response (again!!!) I uploaded some of the real data and tried out your flow, but it seems like the output is a bit different. Could you please help me take a look and see if I did anything wrong? I have attached the workflow and the related excel workbook. Thanks so much for your help! 😊
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@erinylai since the pattern is different i need to rearrange the regex, do you have the expected output for your input file?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Yes! There is a "Desired Output" tab in the Excel file I attached in the last response and it's as follows. Really appreciate your help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Than you so much binuacs! Form some reason it seems that in the final result, one instance of the number did not get turned into a range. (i.e., "4" in the last row ---> JEWRT GG356_177 4). Do you by chance know why that might happen?
Thank you so much again for helping me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Actually I figured it out so you could ignore the previous question! Thank you so much for your help. 😊
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@erinylai I am glad that the solution worked for you. It was a challenging one 😁
