CountIF to Sumproduct

Bandito1

Board Regular
Joined
Oct 18, 2018
Messages
233
Office Version
  1. 2016
Platform
  1. Windows
Hi all,

I use this formula to see the files that came in on a specific date;

Excel Formula:
=IF(B20="";"";COUNTIF('QA tracker data'!$I:$I;B20))

I notice now that when i close the source file (QA tracker data will be in different worksheet) that the data disappears.
I know the cause of this, because of COUNTIF

I want to turn the formula in SUMPRODUCT so the data stays when i close the other worksheet.

But when i change COUNTIF into SUMPRODUCT i get #Value error
Someone knows why?

Dashboard.xlsm
BC
205-okt-2210
216-okt-22#VALUE!
Sheet2
Cell Formulas
RangeFormula
B20:B21B20=IF(B19="","",IF(B19=EOMONTH(B19,0),"",$C$1+ROWS($1:5)-1))
C20C20=IF(B20="","",COUNTIF('QA tracker data'!$I:$I,B20))
C21C21=IF(B21="","",SUMPRODUCT('QA tracker data'!$I:$I,B21))
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Try it like
Excel Formula:
=IF(B21="","",SUMPRODUCT(--('QA tracker data'!$I:$I,B21)))
 
Upvote 0
Tried, but the result didn't change

Dashboard.xlsm
AB
1714-Jan-221
1815-Jan-22#VALUE!
BMR's in kast
Cell Formulas
RangeFormula
A17:A18A17=$A$3+ROWS($1:14)-1
B17B17=IF(A17="","",COUNTIF('QA tracker data'!I:I,A17))
B18B18=IF(A18="","",SUMPRODUCT(--('QA tracker data'!$I:$I,A18)))


Dashboard.xlsm
I
3Date in
414-jan-22
515-jan-22
615-jan-22
QA tracker data
 
Upvote 0
Oops, it should be
Excel Formula:
=IF(B21="","",SUMPRODUCT(--('QA tracker data'!$I:$I=B21)))
 
Upvote 0
Solution
That is it
Should've been able to find that myself.. :(

Thanks!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,552
Messages
6,120,172
Members
448,948
Latest member
spamiki

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