Hello
I'm hoping you can help if possible please.
I have a spreadsheet with 3 tabs, on tab 1 is the formulas / calculations, tab 2 holds all the data and tab 3 has dates (start/end date).
I am trying to calculate how many occasions of absence an employee has within a 6 month period and return that value (as a number).
Employee ID unique - in column A on tab 1 and column A on tab 2
Start date of date range in tab 3 H1
End date of date range in tab 3 H2
Occasions of absence are 1 per row in tab 2, with employee ID in column A, start date of absence in column H and end date of absence in column I.
I've tried the following but it is returning #N/A. All the examples I see online use the formula on the same tab as the data and date - is there any issue with me referring to cells/data in different tabs of the same worksheet?
Formula in cell on Tab1:
=SUMPRODUCT(--(Tab2!H2:H630>=Tab3!H1),--(Tab2!I2:I630<=Tab3!H2),--(Tab2!A2:A630=A2))
I imagine this is probably a fairly easily formula, I'm just struggling to get it to work, any help much appreciated!
Kind Regards
Marie
I'm hoping you can help if possible please.
I have a spreadsheet with 3 tabs, on tab 1 is the formulas / calculations, tab 2 holds all the data and tab 3 has dates (start/end date).
I am trying to calculate how many occasions of absence an employee has within a 6 month period and return that value (as a number).
Employee ID unique - in column A on tab 1 and column A on tab 2
Start date of date range in tab 3 H1
End date of date range in tab 3 H2
Occasions of absence are 1 per row in tab 2, with employee ID in column A, start date of absence in column H and end date of absence in column I.
I've tried the following but it is returning #N/A. All the examples I see online use the formula on the same tab as the data and date - is there any issue with me referring to cells/data in different tabs of the same worksheet?
Formula in cell on Tab1:
=SUMPRODUCT(--(Tab2!H2:H630>=Tab3!H1),--(Tab2!I2:I630<=Tab3!H2),--(Tab2!A2:A630=A2))
I imagine this is probably a fairly easily formula, I'm just struggling to get it to work, any help much appreciated!
Kind Regards
Marie