Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default sum based on 3 critaria from 2 columns

Hi, how to sum A1:A10 if B1:B10=critaria 1 and C1:c10=critaria 2 and critaria
3?
Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default sum based on 3 critaria from 2 columns

What are the specific criteria?

C1:c10=critaria 2 and critaria 3


A cell *value* can't be *equal to* more than 1 criteria. Maybe you meant:

C1:C10=criteria 2 *or* criteria 3


--
Biff
Microsoft Excel MVP


"freebee" wrote in message
...
Hi, how to sum A1:A10 if B1:B10=critaria 1 and C1:c10=critaria 2 and
critaria
3?
Thanks.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,805
Default sum based on 3 critaria from 2 columns

=SUMPRODUCT(--(B1:B10="critaria 1"),--(C1:C10="critaria 2"),(A1:A10)) +
SUMPRODUCT(--(B1:B10="critaria 1"),--(C1:C10="critaria 3"),(A1:A10))

I hope you meant C1:C10 = critaria 2 OR critarais 3 in a given cell

In 2007
SUMPRODUCT(--(B1:B10="critaria 1"),--(C1:C10={"critaria 2","critaria
3"}),(A1:A10))

"freebee" wrote:

Hi, how to sum A1:A10 if B1:B10=critaria 1 and C1:c10=critaria 2 and critaria
3?
Thanks.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 468
Default sum based on 3 critaria from 2 columns

=SUMPRODUCT(--(B1:B10="Cr1"),--((C1:C10="ab")+(C1:C10="cd")),A1:A10)


"freebee" wrote:

Hi, how to sum A1:A10 if B1:B10=critaria 1 and C1:c10=critaria 2 and critaria
3?
Thanks.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default sum based on 3 critaria from 2 columns

try
=sumproduct((b1:b10=1)*(c1:c10={"a","b"})*a1:a10)
or
=sumproduct(--(b1:b10=1),--(c1:c10={"a","b"}),a1:a10)

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"freebee" wrote in message
...
Hi, how to sum A1:A10 if B1:B10=critaria 1 and C1:c10=critaria 2 and
critaria
3?
Thanks.




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
Summing based off different columns Ag Excel Worksheet Functions 3 September 2nd 08 07:26 PM
Need to sum row 7 columns based row 8 columns that are not Blank Leew Excel Worksheet Functions 3 May 27th 08 04:21 PM
sum number of columns based on variable value rt10516 Excel Discussion (Misc queries) 4 November 8th 07 01:47 PM
Ranking based on two columns sa02000 Excel Worksheet Functions 2 April 17th 06 06:10 PM
Tallying columns based on values of 2 different columns Mctabish Excel Worksheet Functions 1 January 30th 05 10:40 AM


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

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

About Us

"It's about Microsoft Excel"