excel countif function
Discussion
COUNTIF will only tell you the number of instances of the value "1" in column B.
If you want to use this value as a trigger to add up the values in column F (which is what I think you are asking) then use the SUMIF function.
eg. =SUMIF(B1:B12,1,F1:F12) will add up the numerical values contained in the cells in column F only if the corresponding cell in column B is equal to 1.
Hope that helps.
If you want to use this value as a trigger to add up the values in column F (which is what I think you are asking) then use the SUMIF function.
eg. =SUMIF(B1:B12,1,F1:F12) will add up the numerical values contained in the cells in column F only if the corresponding cell in column B is equal to 1.
Hope that helps.
thegreenhell said:
COUNTIF will only tell you the number of instances of the value "1" in column B.
If you want to use this value as a trigger to add up the values in column F (which is what I think you are asking) then use the SUMIF function.
eg. =SUMIF(B1:B12,1,F1:F12) will add up the numerical values contained in the cells in column F only if the corresponding cell in column B is equal to 1.
Hope that helps.
that should do it.
thanks.
Gassing Station | Computers, Gadgets & Stuff | Top of Page | What's New | My Stuff


