Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default SUMIF using two ranges

I would like to use SUMIF with two IF ranges ie:

If Column A="xxx" and Column B="yyy" then sum column D

Is this possible? I have only every used SUMIF(A:A,"xxx",D:D)

Many thanks
Yvonne
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default SUMIF using two ranges

=SUMPRODUCT(--(A2:A20="xxx"),--(B2:B20="yyy"),D2:D20)

SP cannot work on whole columns, the range has to be explicit.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"yvonneb" wrote in message
...
I would like to use SUMIF with two IF ranges ie:

If Column A="xxx" and Column B="yyy" then sum column D

Is this possible? I have only every used SUMIF(A:A,"xxx",D:D)

Many thanks
Yvonne



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default SUMIF using two ranges

Try Sumproduct:-

=SUMPRODUCT((A1:A100="xxx")*(B1:B100="yyy")*(D1:D1 00))

Mike


"yvonneb" wrote:

I would like to use SUMIF with two IF ranges ie:

If Column A="xxx" and Column B="yyy" then sum column D

Is this possible? I have only every used SUMIF(A:A,"xxx",D:D)

Many thanks
Yvonne

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default SUMIF using two ranges

Thanks Bob, got it using your suggestion. Much appreciated.

"Bob Phillips" wrote:

=SUMPRODUCT(--(A2:A20="xxx"),--(B2:B20="yyy"),D2:D20)

SP cannot work on whole columns, the range has to be explicit.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"yvonneb" wrote in message
...
I would like to use SUMIF with two IF ranges ie:

If Column A="xxx" and Column B="yyy" then sum column D

Is this possible? I have only every used SUMIF(A:A,"xxx",D:D)

Many thanks
Yvonne




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
SUMIF and LEFT and Named Ranges DaveMoore Excel Worksheet Functions 3 October 5th 06 12:10 PM
SUMIF and LEFT and Named Ranges DaveMoore Excel Worksheet Functions 1 October 5th 06 11:03 AM
How to SUMIF multiple ranges? karesz Excel Discussion (Misc queries) 1 November 10th 05 12:34 AM
SumIF Multiple Ranges Erika Excel Worksheet Functions 2 April 28th 05 05:40 PM
SUMIF and 3-D Ranges Ron In Tulsa Excel Worksheet Functions 2 November 22nd 04 07:30 PM


All times are GMT +1. The time now is 03:58 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"