[Webinar] Streamline your web hosting managementRegister Today

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 243
  • Last Modified:

Excel formulas

Please can you help, I have annotated Columns G & H next to the formulas I am having problems with.

It is the formulas highlighted in yellow that are the ones returning the wrong result?

The formulas in column D are the same as the ones in F, but without the from and to criteria (F5:F6)

I have attached my worksheet,

  • 2
3 Solutions
barry houdiniCommented:
Hello Gazza,

In F9 5 is correct because the formula is summing the values in AB for the rows with dates within your range, so it sums AB18 and gets 5, if you just want to count rows where the dates are in the range and there is a number in AB then try

=SUMPRODUCT(('Low Volume'!B14:B20000+0>=F5)*('Low Volume'!B14:B20000+0<=F6)*ISNUMBER('Low Volume'!AB14:AB20000))

For F10 2 is correct, only rows 14 and 15 qualify, why should it be 4?

F12 has a typo, try like this

=SUMPRODUCT(('Low Volume'!B14:B20000+0>=F5)*('Low Volume'!B14:B20000+0<=F6)*('Low Volume'!AC14:AC20000=TRUE))

regards, barry
barry houdiniCommented:
Oh...and for the last formula in F14. It's counting 4 because it also counts "No" in I18 - did you mean to include column I?

Ingeborg Hawighorst (Microsoft MVP / EE MVE)Microsoft MVP ExcelCommented:

in F9  =SUMPRODUCT(('Low Volume'!B14:B20000+0>=F5)*('Low Volume'!B14:B20000+0<=F6))

(you had a third argument that was responsible for the summing). The result is 3, if I read your data correctly

F10 calculates correctly. The result is 2

F12 had a typo in the cell address AC14. It said 1AC4 instead

=SUMPRODUCT(('Low Volume'!B14:B20000+0>=F5)*('Low Volume'!B14:B20000+0<=F6)*('Low Volume'!AC14:AC20000="True"))

F 14 calculates correctly. There are "No" values in I18, T14, T18 and V18. Your formula includes all values from column I to V. Maybe you want T to V only?

=SUMPRODUCT(('Low Volume'!B14:B20000+0>=F5)*('Low Volume'!B14:B20000+0<=F6)*('Low Volume'!T14:V20000="No"))

That will result in 3

cheers, teylyn


Featured Post

[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now