Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Counting two columns with specific criteria

In column A I have a list of FIRST names and in column B I have a list
of LAST names.

How can I count the number of people with "SMITH" as the LAST name
ONLY if they have "BOB" as a FIRST name?

I have a tried a few things but have got a bit of brain freeze...

Any suggestions?

Thanks

Richard
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Counting two columns with specific criteria

Hi,

Try this

=SUMPRODUCT((A1:A20="Bob")*(B1:B20="Smith"))

Mike

"rjre" wrote:

In column A I have a list of FIRST names and in column B I have a list
of LAST names.

How can I count the number of people with "SMITH" as the LAST name
ONLY if they have "BOB" as a FIRST name?

I have a tried a few things but have got a bit of brain freeze...

Any suggestions?

Thanks

Richard

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Counting two columns with specific criteria

THANKS!

i had no idea i that function worked on text! FANTASTIC!



On Feb 13, 11:09*am, Mike H wrote:
Hi,

Try this

=SUMPRODUCT((A1:A20="Bob")*(B1:B20="Smith"))

Mike



"rjre" wrote:
In column A I have a list of FIRST names and in column B I have a list
of LAST names.


How can I count the number of people with "SMITH" as the LAST name
ONLY if they have "BOB" as a FIRST name?


I have a tried a few things but have got a bit of brain freeze...


Any suggestions?


Thanks


Richard- Hide quoted text -


- Show quoted text -


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Counting two columns with specific criteria

Glad I could help

"rjre" wrote:

THANKS!

i had no idea i that function worked on text! FANTASTIC!



On Feb 13, 11:09 am, Mike H wrote:
Hi,

Try this

=SUMPRODUCT((A1:A20="Bob")*(B1:B20="Smith"))

Mike



"rjre" wrote:
In column A I have a list of FIRST names and in column B I have a list
of LAST names.


How can I count the number of people with "SMITH" as the LAST name
ONLY if they have "BOB" as a FIRST name?


I have a tried a few things but have got a bit of brain freeze...


Any suggestions?


Thanks


Richard- Hide quoted text -


- Show quoted text -



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
Searching two columns against a specific criteria Colin Excel Worksheet Functions 2 July 10th 07 07:20 PM
Summing specific Columns based on Criteria [email protected] Excel Discussion (Misc queries) 4 June 1st 07 03:20 PM
Sum rows if two columns = specific criteria. Jeff Excel Worksheet Functions 2 February 2nd 06 12:29 AM
Counting unique entries in column A but only if specific values appear in columns B and C markx Excel Worksheet Functions 1 February 10th 05 11:52 AM
Counting columns and specific Dates JulieD Excel Worksheet Functions 2 November 12th 04 01:13 PM


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