#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 36
Default Count

Hi Experts, I have a question.
if column A has letters A, B, C or D multiple and column B has numbers 1, 2
or 3.

Column A Column B
a 1
a 1
a 2
a 2
a 2
a 2
a 1
a 2
a 1
b 2
b 1
b 1
b 2
b 1
b 1
b 1
c 2

I want to count the instances where
column A has A and Column B has 1
column A has A and Column B has 2
column A has A and Column B has 3
column A has B and column B has 1
column A has B and column B has 2
column A has B and column B has 2
column A has B and column B has 3
column A has C and column B has 1
column A has C and column B has 2
column A has C and column B has 3
column A has D and column B has 1
column A has D and column B has 2
and
column A has D and column B has 3

please help me...

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Count

Have you looked at doing a pivot table. Place Columns A and then B in the
left of the pivot table and then place column B in the middle of the table.
Switch the aggregation to Count and that should do it... if you want more
help with that just reply back...
--
HTH...

Jim Thomlinson


"Mir Khan" wrote:

Hi Experts, I have a question.
if column A has letters A, B, C or D multiple and column B has numbers 1, 2
or 3.

Column A Column B
a 1
a 1
a 2
a 2
a 2
a 2
a 1
a 2
a 1
b 2
b 1
b 1
b 2
b 1
b 1
b 1
c 2

I want to count the instances where
column A has A and Column B has 1
column A has A and Column B has 2
column A has A and Column B has 3
column A has B and column B has 1
column A has B and column B has 2
column A has B and column B has 2
column A has B and column B has 3
column A has C and column B has 1
column A has C and column B has 2
column A has C and column B has 3
column A has D and column B has 1
column A has D and column B has 2
and
column A has D and column B has 3

please help me...

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Count

Assume you data is in A2:B100 and A1:B1 are header labels.
Select A1:B100 and do Data=Filter=Advanced Filter, select unique in the
lower left and copy to. Then select a range like D1. And click OK. (leave
criteria blank)

in F2
=sumproduct(--($A$2:$A$100=D2),--($B$2:$B$100=E2))

then drag fill down the column.

--
Regards,
Tom Ogilvy



"Mir Khan" wrote:

Hi Experts, I have a question.
if column A has letters A, B, C or D multiple and column B has numbers 1, 2
or 3.

Column A Column B
a 1
a 1
a 2
a 2
a 2
a 2
a 1
a 2
a 1
b 2
b 1
b 1
b 2
b 1
b 1
b 1
c 2

I want to count the instances where
column A has A and Column B has 1
column A has A and Column B has 2
column A has A and Column B has 3
column A has B and column B has 1
column A has B and column B has 2
column A has B and column B has 2
column A has B and column B has 3
column A has C and column B has 1
column A has C and column B has 2
column A has C and column B has 3
column A has D and column B has 1
column A has D and column B has 2
and
column A has D and column B has 3

please help me...

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
Count Employee Work Time - Don't Count Duplicates J Excel Worksheet Functions 3 May 1st 07 10:47 PM
Count Employee Work Time - Don't Double-count Overlapping Apts. J Excel Worksheet Functions 0 April 27th 07 05:52 AM
Excel 2000, count, sort a list & count totals? sunslight Excel Worksheet Functions 1 April 9th 07 05:46 PM
Excel Count characters in a textbox to display character count? [email protected] Excel Programming 1 February 8th 07 06:31 AM
Count Intervals of Filtered TEXT values in Column and Return Count across a Row Sam via OfficeKB.com Excel Worksheet Functions 9 July 31st 05 03:37 AM


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