Any thoughts on why my countifs are not working

robgoldstein

Board Regular
Joined
Oct 26, 2013
Messages
165
Office Version
  1. 2019
Platform
  1. Windows
I am trying to run some some counts of unique entries that include blank cells from row 2 until row 1000. For some reason the counts are coming up with excess numbers. The real confusing part is that the Club count is working properly, and I used the same formula for each just changing the reference column letter. Can any of you explain it?
The first is my page where I have the formulas and the 2nd is the page where I am trying to count unique entries.
League Link Uploader Template.xlsm
ABC
1Clubs4
2Rosters10
3Coaches7
4Teams18
5Games71
6Venues8
7
Dashboard
Cell Formulas
RangeFormula
B1B1=SUMPRODUCT((TeamImport!C2:C1000<>"")/COUNTIF(TeamImport!C2:C1000,TeamImport!C2:C1000&""))
B2B2=SUMPRODUCT((TeamImport!G2:G1000<>"")/COUNTIF(TeamImport!G2:G1000,TeamImport!G2:G1000&""))
B3B3=SUMPRODUCT((TeamImport!J2:J1000<>"")/COUNTIF(TeamImport!J2:J1000,TeamImport!J2:J1000&""))
B4B4=SUMPRODUCT((TeamImport!H2:H1000<>"")/COUNTIF(TeamImport!H2:H1000,TeamImport!H2:H1000&""))
B5B5=COUNTA(GameImport!C:C)-1
B6B6=COUNTA(Venues!A:A)-1


League Link Uploader Template.xlsm
ABCDEFGHIJ
1uploaderIDcountclubgenderageGroupgrouprosterteamNamedivisioncoachFirstName
211Brampton EliteBoys U14Brampton Elite Boys U14Brampton Elite BlueOneMatthew
312Brampton EliteBoys U12Brampton Elite Boys U12Brampton Elite GrayOneMatthew
413Brampton EliteBoys U12Brampton Elite Boys U12Brampton Elite WhiteThreeMatthew
514Brampton EliteBoys U12Brampton Elite Boys U12Brampton Elite YellowTwoSally
615Markham SCBoys U12Markham SC Boys U12Markham SC BlueOneSally
716Markham SCBoys U14Markham SC Boys U14Markham SC BlueOneSally
817Markham SCBoys U12Markham SC Boys U12Markham SC GreenTwoMatthew
918Markham SCGirls U12Markham SC Girls U12Markham SC OrangeTwoMatthew
1019Markham SCGirls U12Markham SC Girls U12Markham SC RedOneMatthew
11110Markham SCBoys U12Markham SC Boys U12Markham SC YellowThreeBryce
12111Pickering FCBoys U12Pickering FC Boys U12Pickering FC BlueTwoBryce
13112Pickering FCBoys U12Pickering FC Boys U12Pickering FC GrayOneSteve
14113Pickering FCBoys U12Pickering FC Boys U12Pickering FC WhiteThreePaul
15114Pickering FCBoys U14Pickering FC Boys U14Pickering FC WhiteOneAndew
16115SC TorontoBoys U12SC Toronto Boys U12SC Toronto GrayTwoSally
17116SC TorontoBoys U12SC Toronto Boys U12SC Toronto NavyOneCraig
18117SC TorontoGirls U12SC Toronto Girls U12SC Toronto OrangeTwoCraig
19118SC TorontoGirls U12SC Toronto Girls U12SC Toronto PurpleOneCraig
20119SC TorontoBoys U12SC Toronto Boys U12SC Toronto RedThreeCraig
21120 
2221  
2322  
2423  
2524  
2625  
TeamImport
Cell Formulas
RangeFormula
C22:C26,C2:C20C2=IFNA(LOOKUP(2,1/((SEARCH(Clubs!$A$2:$A$10,H2))*(Clubs!$A$2:$A$10<>"")),Clubs!$A$2:$A$10),"")
B3:B26B3=B2+1
G2:G26G2=C2&" "&F2
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
can you reveal expected vs returned and where so it can be considered
 
Upvote 0
i just did a simple formula without blanks to show each column there. it seems to work as expected.

League Link Uploader Template.xlsm
ABCDEFGHIJ
1uploaderIDcountclubgenderageGroupgrouprosterteamNamedivisioncoachFirstName
211Brampton EliteBoys U14Brampton Elite Boys U14Brampton Elite BlueOneMatthew
312Brampton EliteBoys U12Brampton Elite Boys U12Brampton Elite GrayOneMatthew
413Brampton EliteBoys U12Brampton Elite Boys U12Brampton Elite WhiteThreeMatthew
514Brampton EliteBoys U12Brampton Elite Boys U12Brampton Elite YellowTwoSally
615Markham SCBoys U12Markham SC Boys U12Markham SC BlueOneSally
716Markham SCBoys U14Markham SC Boys U14Markham SC BlueOneSally
817Markham SCBoys U12Markham SC Boys U12Markham SC GreenTwoMatthew
918Markham SCGirls U12Markham SC Girls U12Markham SC OrangeTwoMatthew
1019Markham SCGirls U12Markham SC Girls U12Markham SC RedOneMatthew
11110Markham SCBoys U12Markham SC Boys U12Markham SC YellowThreeBryce
12111Pickering FCBoys U12Pickering FC Boys U12Pickering FC BlueTwoBryce
13112Pickering FCBoys U12Pickering FC Boys U12Pickering FC GrayOneSteve
14113Pickering FCBoys U12Pickering FC Boys U12Pickering FC WhiteThreePaul
15114Pickering FCBoys U14Pickering FC Boys U14Pickering FC WhiteOneAndew
16115SC TorontoBoys U12SC Toronto Boys U12SC Toronto GrayTwoSally
17116SC TorontoBoys U12SC Toronto Boys U12SC Toronto NavyOneCraig
18117SC TorontoGirls U12SC Toronto Girls U12SC Toronto OrangeTwoCraig
19118SC TorontoGirls U12SC Toronto Girls U12SC Toronto PurpleOneCraig
20119SC TorontoBoys U12SC Toronto Boys U12SC Toronto RedThreeCraig
21120 
22Total Unique49177
TeamImport
Cell Formulas
RangeFormula
C2:C20C2=IFNA(LOOKUP(2,1/((SEARCH(Clubs!$A$2:$A$10,H2))*(Clubs!$A$2:$A$10<>"")),Clubs!$A$2:$A$10),"")
B3:B21B3=B2+1
G2:G21G2=C2&" "&F2
C22,G22C22=SUMPRODUCT(1/COUNTIF(C2:C20,C2:C20))
H22,J22H22=SUMPRODUCT(1/COUNTIF(F2:H20,H2:H20))
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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