H
Hari
Hi,
Lets suppose I have in a worksheet of 500 rows of data with 4 columns.
I want to apply sumproduct for determining count with certain conditions.
Now one of the columns (column A) have data such that it is always only one
of the following 6 possible values. "UK", "US", "IN", "AU", "FI" and "PA
Now one of the conditions in the sumproduct is that column A has to be "UK",
"AU" or "FIN".
For one other column the (Column B) there are 4 possible conditions like 56,
78, 89 or 44.
Now the next condition for sumproduct is that column B is that it has to be
either 78 or 44.
Rest of the two columns are single condition evaluation like column C values
should be equal to or greater than 50 and column D values should be equal
to "Fine"
Since my condition for counting was based on OR condition for column A and
Column B so I used named range for my wanted values.
Like I defined on Name as Country for "UK", "AU" or "FIN" and another Name
as Quantity for 78 or 44.
My sumproduct formula was -->
=SUMPRODUCT((A1:A500=Country)*(B1:B500=Quantity)*(C1:C500>=50)*(D1500="Fin
e"))
Im getting an answer as #N/A
When I used evaluate formula option toolbar (I have excel 2002) it seemed as
if the named ranges are being expected to be an array.
Where am i going wrong?
Regards,
Hari
India
Lets suppose I have in a worksheet of 500 rows of data with 4 columns.
I want to apply sumproduct for determining count with certain conditions.
Now one of the columns (column A) have data such that it is always only one
of the following 6 possible values. "UK", "US", "IN", "AU", "FI" and "PA
Now one of the conditions in the sumproduct is that column A has to be "UK",
"AU" or "FIN".
For one other column the (Column B) there are 4 possible conditions like 56,
78, 89 or 44.
Now the next condition for sumproduct is that column B is that it has to be
either 78 or 44.
Rest of the two columns are single condition evaluation like column C values
should be equal to or greater than 50 and column D values should be equal
to "Fine"
Since my condition for counting was based on OR condition for column A and
Column B so I used named range for my wanted values.
Like I defined on Name as Country for "UK", "AU" or "FIN" and another Name
as Quantity for 78 or 44.
My sumproduct formula was -->
=SUMPRODUCT((A1:A500=Country)*(B1:B500=Quantity)*(C1:C500>=50)*(D1500="Fin
e"))
Im getting an answer as #N/A
When I used evaluate formula option toolbar (I have excel 2002) it seemed as
if the named ranges are being expected to be an array.
Where am i going wrong?
Regards,
Hari
India