Isis84
New Member
- Joined
- Dec 24, 2013
- Messages
- 6
I am trying to reconcile two lists containing task numbers in an XLS spreadsheet, and would like to sort both lists in ascending order and highlight the duplicates. The problem is that these two lists are copied and pasted into an Excel worksheet from two different applications, and one application sometimes includes multiple tasks in the same field as the task of interest. These other tasks are unnecessary and prevent me from sorting the list by the task of interest as they appear first in the cell and begin with a different prefix. (This is due to the manner in which the data gets entered into that particular application, and there is no hope of changing our procedure for that at this time.)
For example, List 1 includes the following tasks: A1(XXX-12345); A2(XXX-56789); A3(XXX-112233), etc. In other words, all tasks in List 1 contain the prefix "XXX" with a unique task number following it.
List 2 may look like this: B1(YYY-12345; ZZZ-56789; XXX-12345); B2(ZZZ-12345; XXX-112233); B3(XXX-123444); etc.
To reiterate, my goal is to remove all of the unnecessary "YYY-" and "ZZZ-" tasks from List 2, so that I may be able to sort that column by the "XXX-" tasks, only. My first thought was to try and utilize the Find and Replace functionality offered by Excel; however, this seems too complex for this functionality. Is this possible using VBA?
The only alternative solution that I could come up with is to select the column containing List 2, utilize the Convert Text to Column Wizard to separate the delimited tasks into multiple columns, sort the columns alphabetically, and manually delete unnecessary tasks. (This is very messy, and I am certain there is an easier way to do this; or rather, have Excel do this for me.) I would greatly appreciate any help and/or suggestions!
For example, List 1 includes the following tasks: A1(XXX-12345); A2(XXX-56789); A3(XXX-112233), etc. In other words, all tasks in List 1 contain the prefix "XXX" with a unique task number following it.
List 2 may look like this: B1(YYY-12345; ZZZ-56789; XXX-12345); B2(ZZZ-12345; XXX-112233); B3(XXX-123444); etc.
To reiterate, my goal is to remove all of the unnecessary "YYY-" and "ZZZ-" tasks from List 2, so that I may be able to sort that column by the "XXX-" tasks, only. My first thought was to try and utilize the Find and Replace functionality offered by Excel; however, this seems too complex for this functionality. Is this possible using VBA?
The only alternative solution that I could come up with is to select the column containing List 2, utilize the Convert Text to Column Wizard to separate the delimited tasks into multiple columns, sort the columns alphabetically, and manually delete unnecessary tasks. (This is very messy, and I am certain there is an easier way to do this; or rather, have Excel do this for me.) I would greatly appreciate any help and/or suggestions!