ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Counting on 2 criteria (https://www.excelbanter.com/excel-worksheet-functions/194383-counting-2-criteria.html)

Richie

Counting on 2 criteria
 
Hi,

I am trying to count the number of entries in a spreadsheet where i have 2
criteria.
One column contains the dept name eg "Sales" and another is a score which is
calculated from a formula.

I've tried Countif's and sum products but with no luck.

=SUMPRODUCT((€˜live risks!b2:b100="Rollout")*(€˜live risks!n2:n100=8)) does
not work.

I have tried using an AND command with Counif, but with no luck.

Thanks


--
Richie

Pete_UK

Counting on 2 criteria
 
Are you sure those cells containing Rollout do not have any spaces at
the end? Could your numbers in column N actually be text values that
look like numbers? Here are some variations you could try:

=SUMPRODUCT((LEFT(‘live risks’!b2:b100,7)="Rollout")*(‘live risks’!
n2:n100=8))

=SUMPRODUCT((LEFT(‘live risks’!b2:b100,7)="Rollout")*(‘live risks’!
n2:n100="8"))

Hope this helps.

Pete

On Jul 10, 3:04*pm, Richie wrote:
Hi,

I am trying to count the number of entries in a spreadsheet where i have 2
criteria.
One column contains the dept name eg "Sales" and another is a score which is
calculated from a formula.

I've tried Countif's and sum products but with no luck.

=SUMPRODUCT((‘live risks’!b2:b100="Rollout")*(‘live risks’!n2:n100=8)) does
not work.

I have tried using an AND command with Counif, but with no luck.

Thanks

--
Richie



PCLIVE

Counting on 2 criteria
 
Your syntax appears correct. What is the result that you get...and what
should it be?

--

"Richie" wrote in message
...
Hi,

I am trying to count the number of entries in a spreadsheet where i have 2
criteria.
One column contains the dept name eg "Sales" and another is a score which
is
calculated from a formula.

I've tried Countif's and sum products but with no luck.

=SUMPRODUCT(('live risks'!b2:b100="Rollout")*('live risks'!n2:n100=8))
does
not work.

I have tried using an AND command with Counif, but with no luck.

Thanks


--
Richie





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

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