Index & Match with counta

tom_blamire

Board Regular
Joined
Dec 13, 2012
Messages
99
Hi,

I have a column that i need to count (cells contain text or numbers or both) but based on 4 criteria. I tried using the index and match based on 4 criteria with a counta element but was returning both #REF and #N/A. Example of formula used was:

=INDEX(COUNTA(DATA!$T:$T),MATCH('PIVOT TABLES'!$MI$1&'PIVOT TABLES'!$MI$2&'PIVOT TABLES'!$MI$3&'PIVOT TABLES'!MH7,NEWRENEWAL&YEAR&MONTH&SALESPERSON,0))


Can anyone help?

Tom
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Try a Countifs

=Countifs(NewRenewal,PIVOT TABLES'!$MI$1,Year,PIVOT TABLES'!$MI$2,Month,PIVOT TABLES'!$MI$3,SalesPerson,PIVOT TABLES'!$MI$4)
 
Last edited by a moderator:
Upvote 0

Forum statistics

Threads
1,226,693
Messages
6,192,460
Members
453,725
Latest member
cvsdatreas

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top