floydschoice
New Member
- Joined
- Mar 30, 2020
- Messages
- 5
- Office Version
- 2013
- 2011
- Platform
- Windows
I have a few columns and couple thousand rows.
In the above table, if Jake is "in" (3rd column) "Germany" (just an example of country) even once, then there should be "Retain" in the 4th column for each of the times Jake has been to Germany "in" and "out".
However, if Jake has been to Ethiopia and has no "in" entry for any of his travels to Ethiopia, then there should be a "Delete" in the 4th column for each of the times Jake has been to Ethiopia. I am relatively new to VBA and I have no idea how to make this work. Can someone help?
PS. The name and the countries mentioned are only example. There could n number of different names and countries in the sheet.
Name | Location | Status | Action |
Jake | Germany | out | Retain |
Jake | Ethiopia | out | Delete |
Jake | Germany | in | Retain |
Jake | Germany | out | Retain |
Jake | Ethiopia | out | Delete |
In the above table, if Jake is "in" (3rd column) "Germany" (just an example of country) even once, then there should be "Retain" in the 4th column for each of the times Jake has been to Germany "in" and "out".
However, if Jake has been to Ethiopia and has no "in" entry for any of his travels to Ethiopia, then there should be a "Delete" in the 4th column for each of the times Jake has been to Ethiopia. I am relatively new to VBA and I have no idea how to make this work. Can someone help?
PS. The name and the countries mentioned are only example. There could n number of different names and countries in the sheet.