I posted a similar question earlier, but this question has slightly different criteria.
I'm looking for this column to either have the number 1 or 2... a number will only appear if the column says "YES" for include2 column... if a team has a yes in Include1 and Include2, then I want the first team that shows up with the same TransID to have a 1 and the other team to have a 2....
If a team has a no in the include1 column, but a yes in the include2 column, then they should have a 2.... if the other team in this trans has two yes in Include1 and Include 2, regardless of whether they are the first team or not, then they will have a 1
The desired result is below and attached. Thank you so much!
Bookmarks