How Sum the Column value in Excel via VBA based on criteria?
Solved/Closed
Raj_2823
Posts
7
Registration date
Monday August 29, 2022
Status
Member
Last seen
January 13, 2023
-
Oct 3, 2022 at 06:16 AM
TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Moderator Last seen December 27, 2022 - Oct 10, 2022 at 12:01 PM
TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Moderator Last seen December 27, 2022 - Oct 10, 2022 at 12:01 PM
Related:
- How to sum values based on criteria in another column in excel
- Number to words in excel - Guide
- How to take screenshot in excel - Guide
- How to change author in excel - Guide
- Gif in excel - Guide
- How to change date format in excel - Guide
2 responses
TrowaD
Posts
2921
Registration date
Sunday September 12, 2010
Status
Moderator
Last seen
December 27, 2022
555
Updated on Oct 10, 2022 at 12:03 PM
Updated on Oct 10, 2022 at 12:03 PM
Wanted to add the following:
To count the actual values for TRUE and FALSE, use these array formula's:
=SUM((E5:E17)*(F5:F17=FALSE))
=SUM((E5:E17)*(F5:F17=TRUE))
NOTE: Array formula's need to be confirmed by hitting Ctrl+Shift+Enter instead of just Enter.
TrowaD
Posts
2921
Registration date
Sunday September 12, 2010
Status
Moderator
Last seen
December 27, 2022
555
Oct 4, 2022 at 11:50 AM
Oct 4, 2022 at 11:50 AM
Hi Raj,
You are looking for the COUNTIF function.
=COUNTIF(F5:F17,FALSE)
Best regards,
Trowa