Hello,
I find myself stuck looking for a solution, which preferably would be in VBA to tie into the rest of the project.
- Variable number of rows (column E)
- For each cell, remove all characters unless the pattern is ###### (6 numbers)
Note: The Qty may be anything >0.
One of the obstacles is that a single cell may contain one or more pattern-matching strings (######).
If more than one string per cell (thus far the most 'Seq#' per one cell was 11), then split with a line break - such as Chr(10).
Three examples before vs. after below.
Thank you,
Stefan
Before | After |
Seq#: 123456 Qty: 15,165 | 123456 |
Seq#: 456789 Qty: 285, Seq#: 345678 Qty: 14,534 | 456789 345678 |
Seq#: 123456 Qty: 15,165, Seq#: 786789 Qty: 6,285, Seq#: 345678 Qty: 14,534 | 123456 456789 345678 |