I have a dataset with redundant data that needs to be cleaned up before running analysis. One of the issues is that sometimes there are two records which are mostly identical except for a few fields. I would like to do something like the following...
If
:ID = :ID
& :Date = :Date
& :Depth = :Depth
& : Parameter = "pH"
& :Activity Type = "Field"
Then
:Column10 = "Use"
Else
:Column10 = "Don't Use"
I'm having trouble figuring out what function to use to find the rows where the three columns match. Once those three columns have been matched, I would like to put a value in an additional column indicating which of the rows have values that are equal to "pH" and "field" in the Parameter and Activity Type columns respectively.
I may be going about this in completely the wrong way so any advice/suggestions/shots in the dark for me to look into, are most welcome! I have done a good bit of internet searching on this one and haven't been able to come up with anything, but I may not be asking the question right. So if you have suggestions as to how to research this issue, that would also be very welcome.
Thanks in advance!