I am trying to produce a countifs formula to put in a cell on sheet 1, that will count the number of entries for ID 'A' on sheet 2.
But also i need to add a criteria to say only count the entries where the date in the column header on sheet 2 matches the date in the column header on sheet 1.
Sheet1
ID 01/01/2016
A 1 (Formula goes here)
B 0 (Formula goes here)
C 1 (Formula goes here)
D 1 (Formula goes here)
Sheet2
ID 01/01/2016
A 1pm - 2pm
B
C 1pm - 2pm
D 1pm - 2pm
I am really struggling to get this to work. so far i have put together this, but it doesn't have the criteria for the dates.
=SUMPRODUCT((Data!$A$2:$A$1000=$A2)*(Data!$D$2:D$1000="$D$1"))
Please can somemone show me where i am going wrong?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.