G
Guest
Here is my problem. I export data every morning and have this done manually.
I am hoping that there may be a macro to do it for me.
Here is an example of the data before I make changes.
Column A Column B
0006-310-1 M40C
0006-310-1 M40C
0006-310-1 S210
0006-310-1 M54E
2003-999-6 Q43A
2003-999-6 E46A
2003-999-6 S111
0111-999-2 F20A
0111-999-2 J01C
Here is the data after I made changes
Column A Column B
0111-999-2 F20A
------------------------------------------------------------------------------------------------
What I need it to do is search column A and B group like model numbers
together that are in column A and then search column B to see if any one of
them exist in a S* (I am using * as a wild card) location. If it does exist
in S* then delete all those rows. If the model number group does not exist
in a S* location then delete all but one row leaving the model number and a
location to get it from.
This may seem easier said than done, I normally deal with any where from 200
rows to 50,000 rows, and roughly 500-1000 model numbers.
I hope I explained this correctly, if not then hopefully the diagrams help.
Any assistance would be great.
Thanks,
Sean
I am hoping that there may be a macro to do it for me.
Here is an example of the data before I make changes.
Column A Column B
0006-310-1 M40C
0006-310-1 M40C
0006-310-1 S210
0006-310-1 M54E
2003-999-6 Q43A
2003-999-6 E46A
2003-999-6 S111
0111-999-2 F20A
0111-999-2 J01C
Here is the data after I made changes
Column A Column B
0111-999-2 F20A
------------------------------------------------------------------------------------------------
What I need it to do is search column A and B group like model numbers
together that are in column A and then search column B to see if any one of
them exist in a S* (I am using * as a wild card) location. If it does exist
in S* then delete all those rows. If the model number group does not exist
in a S* location then delete all but one row leaving the model number and a
location to get it from.
This may seem easier said than done, I normally deal with any where from 200
rows to 50,000 rows, and roughly 500-1000 model numbers.
I hope I explained this correctly, if not then hopefully the diagrams help.
Any assistance would be great.
Thanks,
Sean