Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Excel formula, 2 colons query to sum values in colon 3

I need a formula like SUMIF but the query should be in TWO colons.

A B C
1 a x 2
2 a x 1
3 b x 1
4 b y 3

if A1:A4="a" AND B1:B4=x then SUM C1:C4

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Excel formula, 2 colons query to sum values in colon 3

=SUMPRODUCT(--(A1:A4="a"),--(B1:B4="x"),C1:C4)

See http://www.xldynamic.com/source/xld.SUMPRODUCT.html for an explanation


--

HTH

RP
(remove nothere from the email address if mailing direct)


"Dirk" wrote in message
...
I need a formula like SUMIF but the query should be in TWO colons.

A B C
1 a x 2
2 a x 1
3 b x 1
4 b y 3

if A1:A4="a" AND B1:B4=x then SUM C1:C4



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
How can I get rid of these colons rock[_2_] New Users to Excel 2 August 20th 09 03:33 AM
how to change colon to semi-colon in CP/List Seprator Khoshravan Excel Discussion (Misc queries) 3 February 4th 09 07:41 PM
Excel 2007 Format issue, colons being substituted for decimals. Caoimhin Excel Discussion (Misc queries) 1 October 10th 08 06:20 PM
Importing Data via Web Query - Can values be passed to query? [email protected] Excel Discussion (Misc queries) 5 May 9th 06 06:21 PM
time entry with am/pm and no colons Cyrus Excel Discussion (Misc queries) 9 March 3rd 06 11:42 AM


All times are GMT +1. The time now is 11:22 AM.

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"