formula: counting presence

  • Thread starter Thread starter Nastyd
  • Start date Start date
N

Nastyd

Hello!

I have to count presence of employees from sheets between START and END,
which is stored in G9 cell. I think it should be something like:
=SUM(IF(START:END!G9="present"; 1; 0)), but this one returns #REF and I
don't don't why.
 
Try these from a post of mine today.

One way.
Put the sumif on each sheet with an indirect reference to d12 of the master.
then use
=sum(sheet1:sheet21!a2) where a2 in your sumif formula.

One way to put=SUMIF(B:B,Sheet1!D12) on each sheet is to select all>type the
formula in the cell desired>after the error msg>delete from the master and
use the sum in para 1.

OR
try this where you are summing sheet 2,3,4, & 5
=SUM(SUMIF(INDIRECT("Sheet"&{2,3,4,5}&"!A1:A17"),"a",INDIRECT("Sheet"&{2,3,4
,5}&"!B1:B17")))
 
One way.
Put the sumif on each sheet with an indirect reference to d12 of the
master.
then use
=sum(sheet1:sheet21!a2) where a2 in your sumif formula.
One way to put=SUMIF(B:B,Sheet1!D12) on each sheet is to select all>type
the
formula in the cell desired>after the error msg>delete from the master and
use the sum in para 1.

OR
try this where you are summing sheet 2,3,4, & 5
=SUM(SUMIF(INDIRECT("Sheet"&{2,3,4,5}&"!A1:A17"),"a",INDIRECT("Sheet"&{2,3,4
,5}&"!B1:B17")))

I thought about something like this, but this is very 'ugly'. Maybe there is
some better and nicer solution to do this in one, master formula?
 
That's what the formula after the OR does

Yeah, I know, but this is just a template and problem is that those sheets
can have multiple names. This is why I have START and END. I need to sum
presence in every sheet, that is betweet those two. And there are about 30
employees, so the solution #1 would be very 'ugly'.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Excel Formula for Eclipsing Circles 0
help with a formula 2
If Formula confusion 4
SUMPRODUCT 00-Jan-00 6
An easier way? 9
Formula Help 2
Multiple worksheets? 3
IF statement - almost there! 5

Back
Top