Hi there
Have been struggling with this one....
This is what i have been trying to to:
Col A has staff numbers and Col B has leave type.........The sheet can sometimes have the same employee on multiple rows because the employee could have taken more than one type of leave during the period. Such as Annual Leave and Sick Leave or more Leave Types etcs
The end results is I want Col E to show a narrative of each employee (one row per employee, and not duplicates) that took any amount or type of leave. I am looking at a way to sum up rows that match in Employee ID and Leave type.
Have some issues with this and I have two SUMIF tests in Col E and F, and I think i am preferring Col F solution as it looks like it is closer to working.
Issue with the this SUMIF is it is summing row 8 to 12 when it should only sum row 8 to 11 and then sum row 12 by itself as it is a different leave type for that employee.
Here are the formulas if you don't want to see the spreedsheet...
SUMIF Test 1
=IF(A3=A2,IF(B3=B2,"",SUMIFS(C:C, A:A, A3, B:B, B3)),C3)
SUMIF Test 2
=IF(A3=A2,IF(B3=B2,"",SUMIFS(C:C, A:A, A3, B:B, B3)),C3)
Narrative TEST
=CONCATENATE(A3," has ",TEXT(C3*D3,"$#,##0.00"), " worth of Leave paid this period, which is made up of ", C3, " hours of leave type ",B3," at a rate of ",TEXT(D3,"$#,##0.00"))
Sorry about the long message, but thanks for giving it a go! I am really stuck on this
Bookmarks