I need to count unique values between two columns I have tried count(Unique())formula.
Results entered all values instead of separate value with column
Input :
Date Name
1/1/2022 A
1/1/2022 A
1/1/2022 B
1/2/2022 B
Output :
Column D Column E
A 1
B 2


=LET(X,UNIQUE(B2:B5),CHOOSE({1,2},X,BYROW(X,LAMBDA(A,COUNT(UNIQUE(FILTER(A2:A5,B2:B5=A))))))). Very similar to @Scottcraner's answer. Otherwise, just load the data into an pivot-table. It has a function to count unique values just fine. No need for formulae. Make sure to tick "Add this data to the Data Model".