I have a table in Sheet1 with certain columns.
Column K - Site
Column M - Department
Column N - Service affected
I am using a countifs function to count according to certain criteria's. Below is a portion of the countifs i am using
=COUNTIFS(Sheet1!$K:$K,"Lautoka",Sheet1!$M:$M,$A3,Sheet1!$L:$L,"*DDN*")+COUNTIFS(Sheet1!$K:$K,"Lautoka",Sheet1!$M:$M,$A3,Sheet1!$L:$L,"*IPC*")+COUNTIFS(Sheet1!$K:$K,"Lautoka",Sheet1!$M:$M,$A3,Sheet1!$L:$L,"*NGN*")
Issue
I am trying to add the value of one column where the row has been counted.
i.e Assume Percentage is column Z
cell A3 = FVDN
Location Department Service Affected percentage
Lautoka FVDN DDN 1%
Lautoka IPC IPC 2%
Suva FVDN DDN 2%
Nadi FVDN ISM 5%
Lautoka FVDN DDN 6%
so if my countif crietria is if
=COUNTIFS(Sheet1!$K:$K,"Lautoka",Sheet1!$M:$M,$A3,Sheet1!$L:$L,"*DDN*")+COUNTIFS(Sheet1!$K:$K,"Lautoka",Sheet1!$M:$M,$A3,Sheet1!$L:$L,"*IPC*")+COUNTIFS(Sheet1!$K:$K,"Lautoka",Sheet1!$M:$M,$A3,Sheet1!$L:$L,"*NGN*")
only 2 of the rows meet the criteria so the result will show 2
I want to add the values of the percentage column that met the countifs criteria. I.e 1% + 2% = 3%
I tried the sumifs equation but not getting the correct answer
SUMIFS($Z:$Z,Sheet1!$K:$K,"Lautoka",Sheet1!$M:$M,$A3,Sheet1!$L:$L,"*DDN*")+SUMIFS($Z:$Z,Sheet1!$K:$K,"Lautoka",Sheet1!$M:$M,$A3,Sheet1!$L:$L,"*IPC*")+SUMIFS($Z:$Z,Sheet1!$K:$K,"Lautoka",Sheet1!$M:$M,$A3,Sheet1!$L:$L,"*NGN*")
Bookmarks