I have pairs of values in adjacent columns. I should like a count of the number of times each pair occurs - either way around, i.e. Mary-Fred OR Fred-Mary. Thx. Example:
Bill Joe 1
Sue Mary 1
Fred Mary 2
Joe Sue 1
Mary Fred 2
I have pairs of values in adjacent columns. I should like a count of the number of times each pair occurs - either way around, i.e. Mary-Fred OR Fred-Mary. Thx. Example:
Bill Joe 1
Sue Mary 1
Fred Mary 2
Joe Sue 1
Mary Fred 2
Last edited by Alfie101; 01-23-2016 at 04:24 AM.
C1Try this and copy towards downPlease Login or Register to view this content.
Change the range as per your needs
Samba
Say thanks to those who have helped you by clicking Add Reputation star.
Or
=sumproduct(countifs(a$1:a$5,a1:b1,b$1:b$5,choose({1,2},b1,a1)))
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks