Hi everyone, I have a problem when using Sumproduct formula:
In cell B16, I' m trying to count the number of cells where the value in Column B is less than or equal to the value in Column A, but only when there's a value in Column B.
For example, the value in B1, B2, B3, B4, B6, B12 and B14 is less than or equal to the value in A1, A2, A3, A4, A6, A12 and A14, so there's 7 cells in column B that meets the criteria, and it should return 7 in B13. However, if I use =SUMPRODUCT(--(A1:A15>=B1:B15)) to do the calculation, it will include blank cells in column B and return 13 in B13. Is there a formula to ignore the blank cells in column B? Thank you in advance for your help!
In cell B16, I' m trying to count the number of cells where the value in Column B is less than or equal to the value in Column A, but only when there's a value in Column B.
For example, the value in B1, B2, B3, B4, B6, B12 and B14 is less than or equal to the value in A1, A2, A3, A4, A6, A12 and A14, so there's 7 cells in column B that meets the criteria, and it should return 7 in B13. However, if I use =SUMPRODUCT(--(A1:A15>=B1:B15)) to do the calculation, it will include blank cells in column B and return 13 in B13. Is there a formula to ignore the blank cells in column B? Thank you in advance for your help!