Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Counting matches from more columns

Hi,
I have a list something like this:

A B
P-no. Week
336 2
421 2
421 3
643 3
643 3
336 4
421 4
642 5

In separate colums I need to list how many lines with each P-no. I have in
each week, like this:

C D E F
Week 336 421 643
2 ? ? ?
3 ? ? ?
4 ? ? ?
5 ? ? ?

Hope someone can help with formular at questionmarks.
Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Counting matches from more columns

Try this in D2:

=SUMPRODUCT(($B$2:$B$1000=$C2)*($A$2:$A$1000=D$1))

I have assumed you have 1000 items in your list - adjust if necessary.
Copy the formula across and down as required.

Hope this helps.

Pete

On Nov 9, 12:04 am, PedersenJ
wrote:
Hi,
I have a list something like this:

A B
P-no. Week
336 2
421 2
421 3
643 3
643 3
336 4
421 4
642 5

In separate colums I need to list how many lines with each P-no. I have in
each week, like this:

C D E F
Week 336 421 643
2 ? ? ?
3 ? ? ?
4 ? ? ?
5 ? ? ?

Hope someone can help with formular at questionmarks.
Thanks



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Counting matches from more columns

Thanks Pete,
It works perfect!

Best regards
Jens



"Pete_UK" skrev:

Try this in D2:

=SUMPRODUCT(($B$2:$B$1000=$C2)*($A$2:$A$1000=D$1))

I have assumed you have 1000 items in your list - adjust if necessary.
Copy the formula across and down as required.

Hope this helps.

Pete

On Nov 9, 12:04 am, PedersenJ
wrote:
Hi,
I have a list something like this:

A B
P-no. Week
336 2
421 2
421 3
643 3
643 3
336 4
421 4
642 5

In separate colums I need to list how many lines with each P-no. I have in
each week, like this:

C D E F
Week 336 421 643
2 ? ? ?
3 ? ? ?
4 ? ? ?
5 ? ? ?

Hope someone can help with formular at questionmarks.
Thanks




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 number of times data matches Colin Excel Worksheet Functions 5 September 12th 07 08:28 AM
counting line by line matches of 2 columns possible in excel ? Medikto D Excel Discussion (Misc queries) 3 June 1st 06 05:46 PM
How to identify same row matches in two columns of #s using Excel NBM Excel Discussion (Misc queries) 2 April 13th 06 06:00 AM
I need to compare to columns and indicate the matches in another IFIXPCS New Users to Excel 1 February 22nd 06 05:01 PM
counting matches Ray Newman via OfficeKB.com Excel Discussion (Misc queries) 3 February 4th 05 11:39 PM


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