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

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
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,223,270
Messages
6,171,102
Members
452,379
Latest member
IainTru

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