Im trying to count uniques values of the column tienda with the uniques values of the column promo. Output expected below table.
promo tienda
pablo a
pablo a
pablo b
juan c
juan c
juan c
jesus d
jesus r
Output:
Pablo: 2
Juan: 1
Jesus: 2
Im trying to count uniques values of the column tienda with the uniques values of the column promo. Output expected below table.
promo tienda
pablo a
pablo a
pablo b
juan c
juan c
juan c
jesus d
jesus r
Output:
Pablo: 2
Juan: 1
Jesus: 2
Like so:
http://screencast.com/t/AcfDEO2uda
The array formula entered in F3 is:
=SUM(INDEX(($A$1:$A$8=E3)*(MATCH($B$1:$B$8,$B$1:$B$8,0)=ROW($A$1:$A$8)),0))
...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.
Then copy F3 down.
_________________
Microsoft MVP 2010 - Excel
Visit: Jerry Beaucaire's Excel Files & Macros
If you've been given good help, use theicon below to give reputation feedback, it is appreciated.
Always put your code between code tags. [CODE] your code here [/CODE]
?None of us is as good as all of us? - Ray Kroc
?Actually, I *am* a rocket scientist.? - JB (little ones count!)
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks