zookeepertx
Well-known Member
- Joined
- May 27, 2011
- Messages
- 589
- Office Version
- 365
- Platform
- Windows
Hi there!
I have a spreadsheet with data in columns A-W. Column F contains 11 digit Purchase Order numbers; sometimes a number will be in a given cell more than once and I need to remove the duplicates.
Problem is, there are a few different scenarios:
For example:
In each of these cases, the things I've colored red need to be deleted, leaving only the digits that are black.
I've got a macro that does a lot of sorting, inserting columns and such - simple stuff, really - but I just need to add a bit in the middle to take care of these duplicates and letters.
I have no doubt somebody here can come up with a way to do this easily but I just can't see it. Anybody got a solution? (I'll continue to try and figure it out in the meantime, but am not having success so far)
Thanks!!
Jenny
I have a spreadsheet with data in columns A-W. Column F contains 11 digit Purchase Order numbers; sometimes a number will be in a given cell more than once and I need to remove the duplicates.
Problem is, there are a few different scenarios:
Generally the dups will have another, 4 digit number either before or after the PO# with a "/" between the 4 digits and the 11 digits and that's the one I need to get rid of.
Or, the dup will have "PO" before it and that's the one I need to get rid of.
Or ,all that's in a cell is 1 or more PO#s, each of which has "PO" in front of it and I just need to get rid of each instance of "PO".
For example:
A | B | C | D | E | F | G | H | I | J |
10100603871/8129 10100603871 | |||||||||
10100604443/2009 PO10100604443 10100604372/2009 10100604443 PO10100604372 10100604372 | |||||||||
10100580054 10100584640 | |||||||||
PO10100612531 PO10100595725 PO10100607852 PO10100604443 | |||||||||
10100604160 10100615922 PO10100615922 | |||||||||
10100615922 PO10100615922 10100615922/8111 | |||||||||
10100606384 PO10100606384 |
I've got a macro that does a lot of sorting, inserting columns and such - simple stuff, really - but I just need to add a bit in the middle to take care of these duplicates and letters.
I have no doubt somebody here can come up with a way to do this easily but I just can't see it. Anybody got a solution? (I'll continue to try and figure it out in the meantime, but am not having success so far)
Thanks!!
Jenny