Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Henrik
 
Posts: n/a
Default counting in one column when two expressions in two other columns are true

Hi Group

I am trying to count in one column when two other columns are true

example:

a b c
1 D E F
2 G H I
3 D J F

I want to count colulm 'c' when 'a' is 'D' and 'c' is 'F' = 2

Can anyone help?

Regards

Henrik


  #3   Report Post  
JE McGimpsey
 
Posts: n/a
Default

One way:

=SUMPRODUCT(--(A1:A3="D"),--(C1:C3="F"))

See http://www.mcgimpsey.com/excel/doubleneg.html for an explanation of
the "--".


In article ,
"Henrik" wrote:

Hi Group

I am trying to count in one column when two other columns are true

example:

a b c
1 D E F
2 G H I
3 D J F

I want to count colulm 'c' when 'a' is 'D' and 'c' is 'F' = 2

Can anyone help?

Regards

Henrik

  #4   Report Post  
Henrik
 
Posts: n/a
Default

Thanks guys!

It's now working.


rgds

Henrik

"Henrik" skrev i en meddelelse
...
Hi Group

I am trying to count in one column when two other columns are true

example:

a b c
1 D E F
2 G H I
3 D J F

I want to count colulm 'c' when 'a' is 'D' and 'c' is 'F' = 2

Can anyone help?

Regards

Henrik




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
Making a One Column Directory from Two Columns Dennis Hughes Excel Discussion (Misc queries) 1 January 21st 05 04:01 PM
Pivot Table combining multiple columns Pete Petersen Excel Discussion (Misc queries) 1 January 13th 05 07:56 PM
Counting the Contents of Two Columns Molochi Excel Discussion (Misc queries) 6 December 22nd 04 08:13 PM
How can I see column headings of hidden columns in Excel before u. Beachcomber Excel Discussion (Misc queries) 10 December 10th 04 01:35 PM
Nexsted if across 3 columns Felicity Geronimo Excel Worksheet Functions 4 November 17th 04 11:08 AM


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