Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Conditional count

I need to count unique occurances of names in column a which satisfy
conditions in two other columns. For instance:

A B C
Smith faculty annual fund
Smith faculty annual fund
Jones faculty annual fund
Smith faculty new gift
Jones faculty new gift

The number of unique occurances of Smith in column A where column B=faculty
and column C=annual fund. The answer of course is 2, but how do I write a
formula to answer that question in a long list of data?
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Conditional count

Hi,

Try this

1. Firstly assign headings to the three columns, say Name, Status and Fund
2. Now select the range including the header row and assign it a name
(Ctrl+F3), say try
3. Save the file on the desktop and click on any blank cell
4. Goto Data Get External Data From Other Sources From Microsoft Query
Excel files

5. Select the Excel file on the desktop and click on Next
6. Select the named range (which appears on the left) and click on the
greater then symbol
7. Click on Next 3 times
8. In the last box, select View or edit data in MS Query
9. In the View menu, select Query properties Unique records only OK
10. Click on the SQL button and type the following after the from statement
(in the next line)

WHERE (try.Status='Faculty') AND (try.Fund='Annual fund')
)

10. type the following before the select statement (in the previous line)

Select count(*) from
(

This should get you the answer as 2
11. Go to File Return Data to MS Office Excel
12. In the Import Data box, select table and the cell where you want the
answer

Hope this helps.

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"cisbell_ddess" wrote in message
...
I need to count unique occurances of names in column a which satisfy
conditions in two other columns. For instance:

A B C
Smith faculty annual fund
Smith faculty annual fund
Jones faculty annual fund
Smith faculty new gift
Jones faculty new gift

The number of unique occurances of Smith in column A where column
B=faculty
and column C=annual fund. The answer of course is 2, but how do I write a
formula to answer that question in a long list of data?


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
A conditional Sum & Count keerthyV Excel Worksheet Functions 3 April 14th 09 02:48 PM
conditional count Peter Do Excel Worksheet Functions 6 January 18th 09 08:25 AM
Please help me with a Conditional Count... SisterDell Excel Discussion (Misc queries) 4 March 22nd 07 05:03 PM
Conditional Count Ralph Excel Worksheet Functions 2 December 1st 05 06:27 PM
conditional count Karen Excel Worksheet Functions 1 August 11th 05 11:53 PM


All times are GMT +1. The time now is 04:52 PM.

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"