Forum Discussion
countif / index / match
Let me rephrase your requirement to this:
COUNT the instances of the value in C1 in the range '+PLOD'!H2:AX1048576, only in rows where the date in 'PLOD SUM'!B2 is found in '+PLOD'!B2:B1048576; otherwise, return "No Data".
The foregoing requirement translates to this formula:
IF(SUMPRODUCT(('+PLOD'!H2:AX1048576=C1)*
('PLOD'!B2:B1048576='PLOD SUM'!B2)),
SUMPRODUCT(('+PLOD'!H2:AX1048576=C1)*
('PLOD'!B2:B1048576='PLOD SUM'!B2)),
"No Data")
- El1-_321Jul 24, 2019Copper Contributor
Thank you Twifoo I understand the logic, but this formula doesn't seem to be working in excel..
I am getting an error stating 'Excel ran out of resources while attempting to calculate one or more formulas. As a result, these formulas cannot be evaluated'
- TwifooJul 25, 2019Silver ContributorInstead of using direct references, define them as dynamic ranges. Thereafter, use those defined names in the formula I suggested.
- El1-_321Jul 26, 2019Copper Contributor
Thank you Twifoo
I have defined the ranges and am using the following formula but am still returning with a #N/A
=IF(SUMPRODUCT((PLOD1=C1)*(PLOD2=B2)),SUMPRODUCT((PLOD1=C1)*(PLOD2=B2)),"No Data")
Are my offsets correct? Im not sure about PLOD1 given im looking at a number of columns
PLOD1 =OFFSET('+PLOD'!$H$2,0,0,COUNTA('+PLOD'!$H:$AX),1)
PLOD2 =OFFSET('+PLOD'!$B$2,0,0,COUNTA('+PLOD'!$B:$B),1)