Doubt on creating formula

Copper Contributor

Dear all,

 

I am trying to create a formula that answers to the follow:

 

- unique numbers in ID and CITY if "answer for ACTIVITY 1" OR "answer for ACTIVITY 2"

 

 

How can i make a formula to achieve this conclusion?

 

ID (person)CITYACTIVITY ONEACTIVITY TWO
12345Anumber1 
12345Anumber2 
12345A done
12345Anumber1 
12345A done
12345Anumber1 
67890Bnumber1 
67890B done
67890Cnumber2 

 

Thank you in advance!

 

Carla

4 Replies

@cferr7 

Guessing:

=FILTER(A2:B10;(C2:C10<>"")+(D2:D10<>""))

@Detlef Lewin , you missed the word "unique" in the question

=UNIQUE(FILTER(A2:B10,(C2:C10<>"")+(D2:D10<>"")))

@cferr7 

Another variant is PivotTable if filter empty values

image.png

@Sergei Baklan 

https://www.youtube.com/watch?v=5h-hifskceI

 

Thanks for helping out Sergej.