I have a list of absences and a calculation to work out how many working days were lost during a given period.
The absences are to be categorised as either 'Short' or 'Long'. A short absence is <= 20 and a long absence is => 21.
The aim is to have something like this
Absence Reason | Days Lost Short | Days Lost Long | Total Days Lost
The current solution is to categorise the absences into Short and Long using an IF statement. We then split the spreadsheet into two separate worksheets named Short and Long.
A separate spreadsheet is then set up with the list of absence types. We then use the SUMIF function
=SUMIF(Short!K:K,A2,Short!I:I)
This works but it seems very clumsy. Is there a more elegant solution to this?
Bookmarks