ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   sumif with more than 1 criteria (https://www.excelbanter.com/excel-worksheet-functions/167866-sumif-more-than-1-criteria.html)

Andrew@rushington[_2_]

sumif with more than 1 criteria
 
i have a table with months in column B and names in column a and % scores in
column c. i want to create a formula that states if column B="nov" and column
A = "Bill" then total column c for those rows. actuly i want an average score
for bill for the month but i think i need to do that as a sepearate formula
once i have the total.
name date score
bill nov 98%
tony nov 95%
Bill Nov 85%
Bill dec 85%


Pete_UK

sumif with more than 1 criteria
 
Try this to sum them:

=SUMPRODUCT((A1:A10="Bill")*(B1:B10="Nov")*(C1:C10 ))

and this to count them:

=SUMPRODUCT((A1:A10="Bill")*(B1:B10="Nov"))

so that you can get your average.

Hope this helps.

Pete

On Nov 29, 6:21 pm, Andrew@rushington
wrote:
i have a table with months in column B and names in column a and % scores in
column c. i want to create a formula that states if column B="nov" and column
A = "Bill" then total column c for those rows. actuly i want an average score
for bill for the month but i think i need to do that as a sepearate formula
once i have the total.
name date score
bill nov 98%
tony nov 95%
Bill Nov 85%
Bill dec 85%



Andrew@rushington[_2_]

sumif with more than 1 criteria
 
thanks i will give that a go

"Pete_UK" wrote:

Try this to sum them:

=SUMPRODUCT((A1:A10="Bill")*(B1:B10="Nov")*(C1:C10 ))

and this to count them:

=SUMPRODUCT((A1:A10="Bill")*(B1:B10="Nov"))

so that you can get your average.

Hope this helps.

Pete

On Nov 29, 6:21 pm, Andrew@rushington
wrote:
i have a table with months in column B and names in column a and % scores in
column c. i want to create a formula that states if column B="nov" and column
A = "Bill" then total column c for those rows. actuly i want an average score
for bill for the month but i think i need to do that as a sepearate formula
once i have the total.
name date score
bill nov 98%
tony nov 95%
Bill Nov 85%
Bill dec 85%




Pete_UK

sumif with more than 1 criteria
 
You're welcome.

Pete

On Nov 30, 7:11 am, Andrew@rushington
wrote:
thanks i will give that a go



"Pete_UK" wrote:
Try this to sum them:


=SUMPRODUCT((A1:A10="Bill")*(B1:B10="Nov")*(C1:C10 ))


and this to count them:


=SUMPRODUCT((A1:A10="Bill")*(B1:B10="Nov"))


so that you can get your average.


Hope this helps.


Pete


On Nov 29, 6:21 pm, Andrew@rushington
wrote:
i have a table with months in column B and names in column a and % scores in
column c. i want to create a formula that states if column B="nov" and column
A = "Bill" then total column c for those rows. actuly i want an average score
for bill for the month but i think i need to do that as a sepearate formula
once i have the total.
name date score
bill nov 98%
tony nov 95%
Bill Nov 85%
Bill dec 85%- Hide quoted text -


- Show quoted text -



Andrew@rushington[_2_]

sumif with more than 1 criteria
 
i have tried that but returns a #Value, is this because some of the cells in
range are empty?

"Pete_UK" wrote:

You're welcome.

Pete

On Nov 30, 7:11 am, Andrew@rushington
wrote:
thanks i will give that a go



"Pete_UK" wrote:
Try this to sum them:


=SUMPRODUCT((A1:A10="Bill")*(B1:B10="Nov")*(C1:C10 ))


and this to count them:


=SUMPRODUCT((A1:A10="Bill")*(B1:B10="Nov"))


so that you can get your average.


Hope this helps.


Pete


On Nov 29, 6:21 pm, Andrew@rushington
wrote:
i have a table with months in column B and names in column a and % scores in
column c. i want to create a formula that states if column B="nov" and column
A = "Bill" then total column c for those rows. actuly i want an average score
for bill for the month but i think i need to do that as a sepearate formula
once i have the total.
name date score
bill nov 98%
tony nov 95%
Bill Nov 85%
Bill dec 85%- Hide quoted text -


- Show quoted text -




Stephen[_2_]

sumif with more than 1 criteria
 
No. It's probably because one or more of the cells in the last range
(C1:C10) contains text rather than a numerical percentage..

"Andrew@rushington" wrote in
message ...
i have tried that but returns a #Value, is this because some of the cells
in
range are empty?

"Pete_UK" wrote:

You're welcome.

Pete

On Nov 30, 7:11 am, Andrew@rushington
wrote:
thanks i will give that a go



"Pete_UK" wrote:
Try this to sum them:

=SUMPRODUCT((A1:A10="Bill")*(B1:B10="Nov")*(C1:C10 ))

and this to count them:

=SUMPRODUCT((A1:A10="Bill")*(B1:B10="Nov"))

so that you can get your average.

Hope this helps.

Pete

On Nov 29, 6:21 pm, Andrew@rushington
wrote:
i have a table with months in column B and names in column a and %
scores in
column c. i want to create a formula that states if column B="nov"
and column
A = "Bill" then total column c for those rows. actuly i want an
average score
for bill for the month but i think i need to do that as a sepearate
formula
once i have the total.
name date score
bill nov 98%
tony nov 95%
Bill Nov 85%
Bill dec 85%- Hide quoted text -

- Show quoted text -







All times are GMT +1. The time now is 01:13 PM.

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