ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Help Please: SUMIF function (https://www.excelbanter.com/excel-worksheet-functions/56616-help-please-sumif-function.html)

baz

Help Please: SUMIF function
 
I am using Excel 2003.

I have one SUMIF function that works just fine. However I wan to add a
second argument to work in conjunction with the first.

Example: =SUMIF (D1:D200, Fred, Totals) works fine. I want to use this
in conjunction with looking at E1:E200 where criteria equals 54321,
and still summing the "Totals" sum_range.

Fred may have 75 returns with a total of 423 using the first example
but only 34 returns when I look for the second criteria with a total
of 65.

I tried nesting but I'm just not getting it.

I'd appreciate any help in getting.

Please post as email is bogus to prevent spam.

Thanks in advance for any help.

baz


Daniel Bonallack

Help Please: SUMIF function
 
Baz

The sumproduct formula will change your Excel life...

=sumproduct((D1:D200="Fred")*(E1:E200=54321)*F1:F2 00)

You can have any number of conditions.

You might also want to learn how to set up dynamic name ranges, so you don't
need to worry about extending the formula ranges when new data is added.

An example might be (where column A contains no blank cells, and you have
headers in row 1):
dName: =offset(Sheet1!$A$2,0,0,counta($A:$A)-1)
dZipCode: =offset(Sheet1!$B$2,0,0,counta($A:$A)-1)
dTotal: =offset(Sheet1!$C$2,0,0,counta($A:$A)-1)

Then your formula would be:
=sumproduct((dName="Fred")*(dZipCode=54321)*dTotal )

Hope this helps. I'm sure there are experts out there who would set it up
differently, but this small extra knowledge made a big difference to me.

Daniel


"baz" wrote:

I am using Excel 2003.

I have one SUMIF function that works just fine. However I wan to add a
second argument to work in conjunction with the first.

Example: =SUMIF (D1:D200, Fred, Totals) works fine. I want to use this
in conjunction with looking at E1:E200 where criteria equals 54321,
and still summing the "Totals" sum_range.

Fred may have 75 returns with a total of 423 using the first example
but only 34 returns when I look for the second criteria with a total
of 65.

I tried nesting but I'm just not getting it.

I'd appreciate any help in getting.

Please post as email is bogus to prevent spam.

Thanks in advance for any help.

baz




All times are GMT +1. The time now is 12:04 PM.

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