I have the following two tables in MS Excel.
I want to count the number of occurrences of 'AB' in the rows of 'Adam' and in the columns of 'Feb' and place in P2 cell.
Index and Match commands used as follows returns 'AC'. What is the best way to solve this?
=INDEX($B$3:$L$12,MATCH($N$2,$A$3:$A$12,1),MATCH($P$1,$B$1:$L$1,1))
Here is the file .
Try
=SUM(($B$3:$L$12=$O2)*($B$1:$L$1=$P$1)*($A$3:$A$12=$N$2))
may need array-entering pre Excel 365.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.