#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 64
Default Complex SUMIF

First...this site is great. Such positive feedback responses and quick too.

I am looking for formula help.

I have a list of "Names" in Cells A1:A15 (e.g. A1=John, A2=Jane, A3=John,
A4=Fred, A5=John€¦).

In Column B, I have a list of "Last Names" in Cells B1:B15 (e.g. B1=Smith,
B2=Jones, B3=Edwards, B4=Smith, B5=Smith...).

In Column C, I have a list of numbers in Cells C1:C15 (e.g.
C1=1,C2=2,C3=3,C4=4,C5=5,...).

I would like to set up a formula in Column D where I indicate that if the
criteria in Column A is "John" and Column B criteria is "Smith" then sum the
numbers in Column C. So in my example, there are two instances of "John
Smith." The numbers should total 6 (1+5). Is there a formula for this? For
some reason I cannot get a SUMIF formula to work. To further complicate
matters, I need the formula to ignore blanks.

Help...please!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,311
Default Complex SUMIF

Try this:

=SUMPRODUCT(--(A1:A15="John"),--(B1:B15="Smith"),C1:C15)

HTH,
Paul

--

"Evan" wrote in message
...
First...this site is great. Such positive feedback responses and quick
too.

I am looking for formula help.

I have a list of "Names" in Cells A1:A15 (e.g. A1=John, A2=Jane, A3=John,
A4=Fred, A5=John.).

In Column B, I have a list of "Last Names" in Cells B1:B15 (e.g. B1=Smith,
B2=Jones, B3=Edwards, B4=Smith, B5=Smith...).

In Column C, I have a list of numbers in Cells C1:C15 (e.g.
C1=1,C2=2,C3=3,C4=4,C5=5,...).

I would like to set up a formula in Column D where I indicate that if the
criteria in Column A is "John" and Column B criteria is "Smith" then sum
the
numbers in Column C. So in my example, there are two instances of "John
Smith." The numbers should total 6 (1+5). Is there a formula for this?
For
some reason I cannot get a SUMIF formula to work. To further complicate
matters, I need the formula to ignore blanks.

Help...please!



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,480
Default Complex SUMIF

Hi

Try
=SUMPRODUCT(--($A1:$A$100="John"),--($B$1:$B$100="Smith"),$C$1:$C$100)

You could put the John and Smith in separate cells e.g. D1 and EI and use
=SUMPRODUCT(--($A1:$A$100=$D$1),--($B$1:$B$100=$E$1),$C$1:$C$100)
then just changing the values in D1 and E1 will give you results for other
people.


--
Regards
Roger Govier



"Evan" wrote in message
...
First...this site is great. Such positive feedback responses and quick
too.

I am looking for formula help.

I have a list of "Names" in Cells A1:A15 (e.g. A1=John, A2=Jane, A3=John,
A4=Fred, A5=John.).

In Column B, I have a list of "Last Names" in Cells B1:B15 (e.g. B1=Smith,
B2=Jones, B3=Edwards, B4=Smith, B5=Smith...).

In Column C, I have a list of numbers in Cells C1:C15 (e.g.
C1=1,C2=2,C3=3,C4=4,C5=5,...).

I would like to set up a formula in Column D where I indicate that if the
criteria in Column A is "John" and Column B criteria is "Smith" then sum
the
numbers in Column C. So in my example, there are two instances of "John
Smith." The numbers should total 6 (1+5). Is there a formula for this?
For
some reason I cannot get a SUMIF formula to work. To further complicate
matters, I need the formula to ignore blanks.

Help...please!



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 64
Default Complex SUMIF

Thanks everyone!!! These all worked. I appreciate the quick responses

"Roger Govier" wrote:

Hi

Try
=SUMPRODUCT(--($A1:$A$100="John"),--($B$1:$B$100="Smith"),$C$1:$C$100)

You could put the John and Smith in separate cells e.g. D1 and EI and use
=SUMPRODUCT(--($A1:$A$100=$D$1),--($B$1:$B$100=$E$1),$C$1:$C$100)
then just changing the values in D1 and E1 will give you results for other
people.


--
Regards
Roger Govier



"Evan" wrote in message
...
First...this site is great. Such positive feedback responses and quick
too.

I am looking for formula help.

I have a list of "Names" in Cells A1:A15 (e.g. A1=John, A2=Jane, A3=John,
A4=Fred, A5=John.).

In Column B, I have a list of "Last Names" in Cells B1:B15 (e.g. B1=Smith,
B2=Jones, B3=Edwards, B4=Smith, B5=Smith...).

In Column C, I have a list of numbers in Cells C1:C15 (e.g.
C1=1,C2=2,C3=3,C4=4,C5=5,...).

I would like to set up a formula in Column D where I indicate that if the
criteria in Column A is "John" and Column B criteria is "Smith" then sum
the
numbers in Column C. So in my example, there are two instances of "John
Smith." The numbers should total 6 (1+5). Is there a formula for this?
For
some reason I cannot get a SUMIF formula to work. To further complicate
matters, I need the formula to ignore blanks.

Help...please!




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Complex SUMIF question SkyGuy50 Excel Worksheet Functions 4 August 8th 07 01:08 PM
Complex Index Match Help (or at least complex to me) Jennifer Reitman Excel Discussion (Misc queries) 3 August 10th 06 08:51 PM
How to use complex criteria in SUMIF() jjh64miles Excel Worksheet Functions 3 May 18th 06 09:08 AM
Can I use more complex logical expression for sumif as creteria? xwenx Excel Worksheet Functions 7 April 28th 06 12:53 AM
SumIf formula with complex criteria robot New Users to Excel 6 September 2nd 05 10:03 AM


All times are GMT +1. The time now is 01:38 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"