countif in multi sheet
try this
in summary sheet from G2:G4 mentioned sheet name as Jan,Feb,Mar,April
In summary sheet cell C2 put this formula
=SUMPRODUCT(SUMIF(INDIRECT("'"&$G$2:$G$5&"'!B2:B4" ),B2,INDIRECT("'"&$G
$2:$G$5&"'!C2:C4")))
On Nov 17, 10:37*am, ghost wrote:
Greeting,
I have the following table in 5 sheets (Summary, Jan, Feb, March & Aprial).
Sheet (Jan)
Employee ID * * * * * * Name * * * * * * * * * *No. of Absent
1 * * * * * * * * * * * John * * * * * * * * * * * * * *1
2 * * * * * * * * * * * aaa * * * * * * * * * * * * * * 2
3 * * * * * * * * * * * bbb * * * * * * * * * * * * * * 1
Sheet (Feb)
Employee ID * * * * * * Name * * * * * * * * * *No. of Absent
1 * * * * * * * * * * * John * * * * * * * * * * * * * *3
2 * * * * * * * * * * * aaa * * * * * * * * * * * * * * 1
3 * * * * * * * * * * * bbb * * * * * * * * * * * * * * 4
.
.
.
.
So on.
What I want to do is how to summarize the above table as follows by using
sum if or count if:
Sheet (summary)
Employee ID * * * * * * Name * * * * * * * * * *Absent Total
1 * * * * * * * * * * * John * * * * * * * * * * * * * *4
2 * * * * * * * * * * * aaa * * * * * * * * * * * * * * 3
3 * * * * * * * * * * * bbb * * * * * * * * * * * * * * 5
|