Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
dlb dlb is offline
external usenet poster
 
Posts: 12
Default Can I use sumif with OR to sum based on two column criteria?

I am try to use sumif on two different criteria, but the first criteria could
be "A" or "B".

Somthing like this:
=SUMPRODUCT(--(A3:A6="A" OR "B"),--(B3:B6="C"),C3:C6)

Not even sure if Sumproduct is the right path to follow.

Any thoughts?


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Can I use sumif with OR to sum based on two column criteria?

=SUMPRODUCT((A3:A6="A")+(A3:A6="B"),--(B3:B6="C"),C3:C6)
--
David Biddulph

"DLB" wrote in message
...
I am try to use sumif on two different criteria, but the first criteria
could
be "A" or "B".

Somthing like this:
=SUMPRODUCT(--(A3:A6="A" OR "B"),--(B3:B6="C"),C3:C6)

Not even sure if Sumproduct is the right path to follow.

Any thoughts?




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
dlb dlb is offline
external usenet poster
 
Posts: 12
Default Can I use sumif with OR to sum based on two column criteria?

Thanks David! It works as advertised!

"David Biddulph" wrote:

=SUMPRODUCT((A3:A6="A")+(A3:A6="B"),--(B3:B6="C"),C3:C6)
--
David Biddulph

"DLB" wrote in message
...
I am try to use sumif on two different criteria, but the first criteria
could
be "A" or "B".

Somthing like this:
=SUMPRODUCT(--(A3:A6="A" OR "B"),--(B3:B6="C"),C3:C6)

Not even sure if Sumproduct is the right path to follow.

Any thoughts?





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 formula from one column based on criteria from two other col stanasia Excel Discussion (Misc queries) 13 May 30th 08 08:43 PM
sumif-add amount to another cell based on two criteria gabrielinlompoc Excel Discussion (Misc queries) 0 February 10th 06 12:22 AM
SumIf based on two criteria Mark Williams Excel Worksheet Functions 1 June 22nd 05 06:43 PM
SUMIF in multiple columns based on other criteria in Excel? Scott Powell Excel Discussion (Misc queries) 9 April 13th 05 02:32 PM
Is it possible to use the sumif function based on the criteria of. Shelba Excel Worksheet Functions 1 February 2nd 05 05:40 AM


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