ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   COUNT IF (AND / OR) SUM IF PROBLEM (https://www.excelbanter.com/excel-worksheet-functions/139326-count-if-sum-if-problem.html)

Anthony Mann

COUNT IF (AND / OR) SUM IF PROBLEM
 
I have been trying to use COUNT IF and SUM IF functions in a worksheet, and I
have been receiving the #VALUE! error.

For Example:
I am trying to have it add up the number of personnel with "ARCOM" and "1",
just adding the number of personnel with ARCOMs to gather a total. The same
thing with other types of awards - # of personnel with other type of awards.
Just adding ARCOM and "1" (in a separate column" should work.

The formula(s) that I am using a
=COUNT(IF((E7:E350="ARCOM)+(T7:T350="1")1,0))
and
=SUM(IF((E7:E350="ARCOM)+(T7:T350="1")1,0))

The COUNT IF formula worked ONCE, and then I started getting the #VALUE!
error, with no resolution in sight.

This formula is on a very high priority document for us, so if you know the
answer, please post it here, or email it to me at

Thanks!!

Barb Reinhardt

COUNT IF (AND / OR) SUM IF PROBLEM
 
Try this:

=SUMPRODUCT(--(E7:E350="ARCOM"),--(T7:T350=1)))

"Anthony Mann" wrote:

I have been trying to use COUNT IF and SUM IF functions in a worksheet, and I
have been receiving the #VALUE! error.

For Example:
I am trying to have it add up the number of personnel with "ARCOM" and "1",
just adding the number of personnel with ARCOMs to gather a total. The same
thing with other types of awards - # of personnel with other type of awards.
Just adding ARCOM and "1" (in a separate column" should work.

The formula(s) that I am using a
=COUNT(IF((E7:E350="ARCOM)+(T7:T350="1")1,0))
and
=SUM(IF((E7:E350="ARCOM)+(T7:T350="1")1,0))

The COUNT IF formula worked ONCE, and then I started getting the #VALUE!
error, with no resolution in sight.

This formula is on a very high priority document for us, so if you know the
answer, please post it here, or email it to me at

Thanks!!


Ron Coderre

COUNT IF (AND / OR) SUM IF PROBLEM
 
Try this:

=SUMPRODUCT((E7:E350="ARCOM")*(--T7:T350=1))

That formula works whether the Col_T values are text or numeric.

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"Anthony Mann" wrote:

I have been trying to use COUNT IF and SUM IF functions in a worksheet, and I
have been receiving the #VALUE! error.

For Example:
I am trying to have it add up the number of personnel with "ARCOM" and "1",
just adding the number of personnel with ARCOMs to gather a total. The same
thing with other types of awards - # of personnel with other type of awards.
Just adding ARCOM and "1" (in a separate column" should work.

The formula(s) that I am using a
=COUNT(IF((E7:E350="ARCOM)+(T7:T350="1")1,0))
and
=SUM(IF((E7:E350="ARCOM)+(T7:T350="1")1,0))

The COUNT IF formula worked ONCE, and then I started getting the #VALUE!
error, with no resolution in sight.

This formula is on a very high priority document for us, so if you know the
answer, please post it here, or email it to me at

Thanks!!



All times are GMT +1. The time now is 07:00 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com