Simple Text Searching Macro

Copper Contributor

My problem is simple in design, but I won't comment on the difficulty of execution.

In summary, I need to match data from two columns of data with the corresponding data in a separate two columns of data. The data is just a text string, specifically the name of a company, and a location (city, state).

 

Manually I accomplish this by looking at the raw data here:

Screenshot 2018-12-19 20.55.58.png

 

On the first line I see that it's Company AAA, located in Washington, D.C.

 

I then turn to the other set of data:

Screenshot 2018-12-19 20.53.08.png

If company AAA is listed here AND the city for that particular company is as well, I delete the original row of data I started with. If not, I abandon the search for this first data set and move back to the raw data, and repeat for the next line.

 

By way of another example, you will notice that Company C, in both Nashville and Memphis are in both data sets and therefore would be deleted from the first.

 

I understand the basic idea of several loops with nested conditional statements but I'm far more interested in having someone produce this straightforward macro for me instead of spinning my wheels learning this specific language. Obviously, I would pay for this.

 

Does someone think they can help?

0 Replies