Hi all
I'm using sumproduct to find the total number of people who meet certain criteria in a pay model.
The following works perfectly
=SUMPRODUCT((Band=A4)*(Range=B4)*(FT_Sal>=B19)*(FT_Sal<=B20))
where Band, Range & FT_Sal are all named ranges which are (currently) 1 column by 500 rows, 1-500.
However when I try to calculate the full time equivalents using the following (where FTE is also a named range 1 col by 500 rows) I get #VALUE!
=SUMPRODUCT((Band=A4)*(Range=B4)*(FT_Sal>=B19)*(FT_Sal<=B20)*(FTE))
the range FTE contains numbers >0 to <=1 used for calculating workforce with part time staff.
I've checked (and re checked) obvious things like the size of ranges etc. I've also tried combining the first 2 arguments ie
=SUMPRODUCT((Band&Range=A4&B4)*(FT_Sal>=B19)*(FT_Sal<=B20)
works to give me a count but
=SUMPRODUCT((Band&Range=A4&B4)*(FT_Sal>=B19)*(FT_Sal<=B20)*(FTE))
doesn't!!
I've also tried changing the length of the ranges and checking formatting of cells in the FTE range but still no joy!
Any suggestions, I feel like I'm missing something really obvious?
;-)
I'm using sumproduct to find the total number of people who meet certain criteria in a pay model.
The following works perfectly
=SUMPRODUCT((Band=A4)*(Range=B4)*(FT_Sal>=B19)*(FT_Sal<=B20))
where Band, Range & FT_Sal are all named ranges which are (currently) 1 column by 500 rows, 1-500.
However when I try to calculate the full time equivalents using the following (where FTE is also a named range 1 col by 500 rows) I get #VALUE!
=SUMPRODUCT((Band=A4)*(Range=B4)*(FT_Sal>=B19)*(FT_Sal<=B20)*(FTE))
the range FTE contains numbers >0 to <=1 used for calculating workforce with part time staff.
I've checked (and re checked) obvious things like the size of ranges etc. I've also tried combining the first 2 arguments ie
=SUMPRODUCT((Band&Range=A4&B4)*(FT_Sal>=B19)*(FT_Sal<=B20)
works to give me a count but
=SUMPRODUCT((Band&Range=A4&B4)*(FT_Sal>=B19)*(FT_Sal<=B20)*(FTE))
doesn't!!
I've also tried changing the length of the ranges and checking formatting of cells in the FTE range but still no joy!
Any suggestions, I feel like I'm missing something really obvious?
;-)
If a man says something and there are no women there to hear him, is he still wrong? ![[ponder] [ponder] [ponder]](/data/assets/smilies/ponder.gif)
How do I get the best answers?
![[ponder] [ponder] [ponder]](/data/assets/smilies/ponder.gif)
How do I get the best answers?