Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 1
Default Counting with multiple criteria in multiple columns

For Example : In column G the values 21F, 23, 10F, 45 exist and in column D the values P, C , T exist. I need a formula to count if column G has 21f and 45 AND column D has a P in it.

G D

21F P
23 P
10F C
45 P


So i need something to show that there are 2 of this combination.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 259
Default Counting with multiple criteria in multiple columns

On 8/06/2012 10:40 PM, 1609em wrote:
For Example : In column G the values 21F, 23, 10F, 45 exist and in
column D the values P, C , T exist. I need a formula to count if column
G has 21f and 45 AND column D has a P in it.

G D

21F P
23 P
10F C
45 P


So i need something to show that there are 2 of this combination.




Hi

Try this

=SUMPRODUCT(($D$2:$D$10000="P")*($G$2:$G$10000="21 F")+(($D$2:$D$10000="P")*($G$2:$G$10000=45)))

This formula assumes the 1st row is the header, you can adjust the range
to suit.

HTH
Mick.


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
Counting with multiple criteria in separate Columns Felicia Excel Discussion (Misc queries) 4 July 13th 09 09:27 PM
Counting multiple criteria across columns and rows??? ISAF Media Analysis[_2_] Excel Worksheet Functions 2 February 12th 09 10:46 AM
Counting multiple criteria across columns and rows??? ISAF Media Analysis[_2_] Excel Worksheet Functions 1 February 12th 09 08:48 AM
Counting Multiple columns using single criteria Vikefan Excel Worksheet Functions 1 June 24th 08 02:58 AM
Help w/ counting multiple columns based on IF criteria ConstructionGuy Excel Worksheet Functions 3 November 8th 05 04:03 AM


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