Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 48
Default COUNTIF - with more than one criteria

I have a spreadsheet with a table where I want to count - but I have 2
criterias. How can I use this function with more than one criteria?

The spreadsheet looks something like this:

A B
1 Place Type of course
2 Oslo Intro
3 Stavanger Intro
4 Stavanger Theme
5 Oslo Theme
6 Stavanger Intro
7 Stavanger Intro
8 Bergen Theme
9 Bergen Intro


.... and so on

I want to count ex:
Oslo with intro
Oslo with theme
Bergen with intro
Bergen with theme
Stavanger with intro
Stavanger with theme

How can I do this in this function, or are there any other functions that
can be used? I can do this by filtering in a list with subtotal, but then I
have to change the filter all the time.
  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default COUNTIF - with more than one criteria

Assume paired criteria listed in D2:E2 down
eg D2 = Oslo, E2 = Intro

Put in F2:
=SUMPRODUCT((A$2:A$100=D2)*(B$2:B$100=E2))
Copy down
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Kathrine" wrote:
I have a spreadsheet with a table where I want to count - but I have 2
criterias. How can I use this function with more than one criteria?

The spreadsheet looks something like this:

A B
1 Place Type of course
2 Oslo Intro
3 Stavanger Intro
4 Stavanger Theme
5 Oslo Theme
6 Stavanger Intro
7 Stavanger Intro
8 Bergen Theme
9 Bergen Intro


... and so on

I want to count ex:
Oslo with intro
Oslo with theme
Bergen with intro
Bergen with theme
Stavanger with intro
Stavanger with theme

How can I do this in this function, or are there any other functions that
can be used? I can do this by filtering in a list with subtotal, but then I
have to change the filter all the time.

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
Countif with 2 criteria mldancing Excel Discussion (Misc queries) 4 March 28th 07 04:44 PM
Countif with criteria BSantos Excel Worksheet Functions 2 February 15th 06 06:44 PM
Countif W/ 2 Criteria carl Excel Worksheet Functions 2 May 3rd 05 10:33 PM
Countif using format criteria not number criteria? Rumbla76 Excel Worksheet Functions 1 April 20th 05 05:38 AM
Countif using format criteria....not number criteria? Troy Excel Worksheet Functions 1 April 20th 05 04:50 AM


All times are GMT +1. The time now is 08:21 PM.

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"