COUNTIFS Formula Not Working

emirahuhu

New Member
Joined
Feb 6, 2023
Messages
5
Office Version
  1. 365
Platform
  1. Windows
Hi, so I have an excel sheet here that needs the CountIFS Formula. I am not sure why it isn't working and there doesn't seem to be anything wrong with the formula but it keeps returning zero.

I have tried removing the dropdown list and the data validation but it is still returning zero. Any advice?

The formula that I have used is this:

=COUNTIFS(ALL!$A$1:$H$1355,'SUMMARY REPORT 2023'!A6,ALL!$A$1:$H$1355,'SUMMARY REPORT 2023'!G2)

Please note that on the criteria range there are like 300+ rows that are hidden. I am not sure if that has any effect with this formula.

This can be found on the Summary Report tab on F6. I am attaching here the sheet as well. Any help would be wonderful.

Sample Sheet.xlsx
ABCDEFGHIJ
12023LIFETIME COUNTSCHOLAR STATUS as of current SY
2LIFETIME SCHOLARSGRADUATESFALLOUTBREACHBeg'g 2022ACTIVEGRADUATEDFALLOUTBREACH
3TOTAL
4TEACHSTEM258108
5TeachSTEM College1500000
6TeachSTEM College Private0
7TeachSTEM College Public0
8TeachSTEM Masters108108000
9TeachSTEM Masters Private
10TeachSTEM Masters Public
SUMMARY REPORT 2023
Cell Formulas
RangeFormula
F4:G4F4=SUM(F5:F8)
G5,G8G5=COUNTIFS(ALL!$G$3:$G$5001,'SUMMARY REPORT 2023'!A5,ALL!$D$3:$D$5001,'SUMMARY REPORT 2023'!$G$2)
H8:J8,H5:J5H5=COUNTIFS(ALL!$G$3:$G$5001,'SUMMARY REPORT 2023'!$A5,ALL!$D$3:$D$5001,'SUMMARY REPORT 2023'!H$2,ALL!$E$3:$E$5001,$A$1)
F6:F7F6=COUNTIFS(ALL!$A$1:$H$1355,'SUMMARY REPORT 2023'!A6,ALL!$A$1:$H$1355,'SUMMARY REPORT 2023'!G2)
Named Ranges
NameRefers ToCells
ALL!_FilterDatabase=ALL!$A$2:$H$1355F6:F7



Sample Sheet.xlsx
ABCDEFGH
574tsc157BallejoPrincess EllaActiveTeachSTEM College PublicN/A
575tsc158BanaguaMary GraceActiveTeachSTEM College PublicN/A
576tsc159BorlagdanQueenieActiveTeachSTEM College PublicN/A
577tsc160CadutChristel JoyActiveTeachSTEM College PublicN/A
578tsc161CuberosMechaellah Joy ActiveTeachSTEM College PublicN/A
579tsc162GemperosoAngela ActiveTeachSTEM College PublicN/A
580tsc163GernaleJames IanActiveTeachSTEM College PublicN/A
581tsc164JacalanArren JeanActiveTeachSTEM College PublicN/A
582tsc165LarraJhon Dave ActiveTeachSTEM College PublicN/A
583tsc166LazarteJedwin JamesActiveTeachSTEM College PrivateN/A
584tsc167LlamandoJohn Edzel ActiveTeachSTEM College PublicN/A
585tsc168LozadaJaren PaulActiveTeachSTEM College PrivateN/A
586tsc169MabunayHoneylynActiveTeachSTEM College PublicN/A
587tsc170MadronioMa. Jemenica AngelaActiveTeachSTEM College PublicN/A
588tsc171NievaMaria ConnieActiveTeachSTEM College PublicN/A
589tsc172NuezJasmineActiveTeachSTEM College PublicN/A
590tsc173OblefiasChristian ActiveTeachSTEM College PublicN/A
591tsc174PalañaHannah Mae ActiveTeachSTEM College PublicN/A
592tsc175PatinggaFrancis AillaineActiveTeachSTEM College PublicN/A
593tsc176SagaManuelActiveTeachSTEM College PublicN/A
594tsc177SingsonJay AnnActiveTeachSTEM College PublicN/A
595tsc178SocobosApril LeeActiveTeachSTEM College PublicN/A
596tsc179TagapulotXyreece Angel ActiveTeachSTEM College PublicN/A
597tsc180VidadJoannaActiveTeachSTEM College PublicN/A
598tsc181VillafloresGiselleActiveTeachSTEM College PrivateN/A
ALL
Cells with Data Validation
CellAllowCriteria
G574:G696ListEndowment,. LTG, NextGen, St. Stephen, STEM GG-BU, TeachSTEM College Public, TeachSTEM College Private, TeachSTEM Master Public, TeachSTEM Master Private,YSA
D574:D598ListActive, Fallout, Breach, Graduated, To Graduate
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Your sample only has two unique values in Column G. but, its enough to tinker with.
 
Upvote 1
Looks like it should be like this to me.

BTW, it is a bad idea to use the worksheet name that the formula is on, in the formula itself (SUMMARY REPORT 2023)
It can lead to errors in some instances.


emirahuhu.xlsm
ABCDEF
12023LIFETIME COUNT
2LIFETIME SCHOLARSGRADUATESFALLOUTBREACHBeg'g 2022
3TOTAL
4TEACHSTEM283
5TeachSTEM College150
6TeachSTEM College Private3
7TeachSTEM College Public22
SUMMARY REPORT 2023
Cell Formulas
RangeFormula
F4F4=SUM(F5:F8)
F6:F7F6=COUNTIFS(ALL!$G$1:$G$1355,A6,ALL!$D$1:$D$1355,G$2)
 
Upvote 1
Solution
Also, Column ALL tab is also blank. It seems it should be a year number or a date. But unsure of which.
 
Upvote 1
Looks like it should be like this to me.

BTW, it is a bad idea to use the worksheet name that the formula is on, in the formula itself (SUMMARY REPORT 2023)
It can lead to errors in some instances.


emirahuhu.xlsm
ABCDEF
12023LIFETIME COUNT
2LIFETIME SCHOLARSGRADUATESFALLOUTBREACHBeg'g 2022
3TOTAL
4TEACHSTEM283
5TeachSTEM College150
6TeachSTEM College Private3
7TeachSTEM College Public22
SUMMARY REPORT 2023
Cell Formulas
RangeFormula
F4F4=SUM(F5:F8)
F6:F7F6=COUNTIFS(ALL!$G$1:$G$1355,A6,ALL!$D$1:$D$1355,G$2)
Thank you so much for this, advice! This totally worked!
 
Upvote 0
You're welcome. Thanks for the follow-up. :)
 
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,732
Members
448,987
Latest member
marion_davis

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