Hello All,
I have the following data set

When a UNIT has a SUB_UNIT A that matches with a SUB_UNIT B. I need to remove the SUB_UNIT B row and replace the A with a W. One UNIT and SUB_UNIT can only be matched with one other UNIT and SUB_UNIT. So the result should look like this...

Is there any way to do this outside of using Python?
Appreciate any help you can give!