I have a Google Sheets document that looks like this:
A B C D 1 2 X X 3 3 Z Y 2 4 W Z 6 5
How can I do so that if