Countifs with a lookup

DRExcel515

Board Regular
Joined
Oct 20, 2017
Messages
56
So I have a bunch of column identifiers in column A on Sheet 1 (AVG_EFC_MTY_YR_QT EG). On sheet 2 I have the same column identifiers, except that they go across starting in A1 through IN1 and have data below them in the columns. What I wanted to do on sheet 1 in column B is say go and count all the actual populated data in this column on sheet 2 and exclude if the value is equal to (null). Here is the formula I was trying to build but doesn't seem to work. Any help would be much appreciated!

Thanks,
COUNTIFS(INDEX(Sheet2!1:1,MATCH(Sheet1!$A2,Sheet2!1:1,0)),Sheet1!$A2,Table1,"<>(null)")
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
colacolbcolccolacolbcolc
3317470739205
4
66
5
55
6
7
844502
ignore separate sheets for now - what do you want in A2:A4 ?

<colgroup><col width="64" span="13" style="width:48pt"> </colgroup><tbody>
</tbody>
 
Upvote 0
colacolbcolccolacolbcolc
64239205
4
66
5
55
6
7
844502
formula in A2 is
=SUMPRODUCT((J2:J100<>"")*1)

<colgroup><col width="64" span="15" style="width:48pt"> </colgroup><tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,216,176
Messages
6,129,319
Members
449,501
Latest member
Amriddin

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