I feel like I am making a duplicate topic on the subject but I have done extensive searching and I cannot figure out how to get this to work.
The closest topic I could find that is related (and has a macro posted by Mofi) that doesn't work for me is: Delete line with partially duplicate content
I'm working with a city/state CSV that has multiple duplicate cities that need to be removed. Here's a sampling:
Hamilton,AK,Wade Hampton (CA),62.8961111,-163.8941667
Hamilton Acres,AK,Fairbanks North Star,64.8469444,-147.6705556
Hammerhead,AK,Aleutians West (CA),51.8486111,-176.6416667
Happy Valley,AK,Kenai Peninsula,59.9472222,-151.7322222
Happy Valley,AK,Aleutians West (CA),51.8472222,-176.6541667
Harding Lake,AK,Fairbanks North Star,64.4216667,-146.8508333
Hawk Inlet,AK,Skagway-Hoonah-Angoon (CA),58.1258333,-134.7530556
Haycock,AK,Nome (CA),65.2097222,-161.1655556
Healy,AK,Denali,63.8569444,-148.9661111
Herendeen Bay,AK,Aleutians East,55.7680556,-160.6858333
Herring Cove,AK,Ketchikan Gateway,0,0
Herring Cove,AK,Ketchikan Gateway,55.325,-131.5222222
Highland Park,AK,Fairbanks North Star,64.7569444,-147.3605556
Hobart Bay,AK,Skagway-Hoonah-Angoon (CA),57.4658333,-133.3533333
In this case, I need these removed:
Happy Valley,AK,Kenai Peninsula,59.9472222,-151.7322222
Herring Cove,AK,Ketchikan Gateway,0,0
They are duplicates. We aren't worried so much about county and geo locations. But anything with city,state that matches exactly, I'd like removed so that there is only one.
Thanks.
The closest topic I could find that is related (and has a macro posted by Mofi) that doesn't work for me is: Delete line with partially duplicate content
I'm working with a city/state CSV that has multiple duplicate cities that need to be removed. Here's a sampling:
Hamilton,AK,Wade Hampton (CA),62.8961111,-163.8941667
Hamilton Acres,AK,Fairbanks North Star,64.8469444,-147.6705556
Hammerhead,AK,Aleutians West (CA),51.8486111,-176.6416667
Happy Valley,AK,Kenai Peninsula,59.9472222,-151.7322222
Happy Valley,AK,Aleutians West (CA),51.8472222,-176.6541667
Harding Lake,AK,Fairbanks North Star,64.4216667,-146.8508333
Hawk Inlet,AK,Skagway-Hoonah-Angoon (CA),58.1258333,-134.7530556
Haycock,AK,Nome (CA),65.2097222,-161.1655556
Healy,AK,Denali,63.8569444,-148.9661111
Herendeen Bay,AK,Aleutians East,55.7680556,-160.6858333
Herring Cove,AK,Ketchikan Gateway,0,0
Herring Cove,AK,Ketchikan Gateway,55.325,-131.5222222
Highland Park,AK,Fairbanks North Star,64.7569444,-147.3605556
Hobart Bay,AK,Skagway-Hoonah-Angoon (CA),57.4658333,-133.3533333
In this case, I need these removed:
Happy Valley,AK,Kenai Peninsula,59.9472222,-151.7322222
Herring Cove,AK,Ketchikan Gateway,0,0
They are duplicates. We aren't worried so much about county and geo locations. But anything with city,state that matches exactly, I'd like removed so that there is only one.
Thanks.