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 in two columns

A spreadsheet contains 3 columns: "Item", "Week no." and "Year".

F.ex.:

A B C
1 Item Week Year
2 101 32 2006
3 101 32 2006
4 101 32 2006
5 101 32 2007
6 101 32 2007
7 102 32 2006
8 102 33 2006

In another cell I wish to count how many of the different Items (f.ex. 101)
are listed in f.ex. week 32 AND year 2006, but only for these. In the above
case the result should be 3.

It seems simple, but I just can not figure it out. Can anybody give me the
formular for this? Thanks.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,089
Default Counting in two columns

=SUMPRODUCT((A2:A8=101)*(B2:B8=32)*(C2:C8=2006))

Regards

Trevor


"PedersenJ" wrote in message
...
A spreadsheet contains 3 columns: "Item", "Week no." and "Year".

F.ex.:

A B C
1 Item Week Year
2 101 32 2006
3 101 32 2006
4 101 32 2006
5 101 32 2007
6 101 32 2007
7 102 32 2006
8 102 33 2006

In another cell I wish to count how many of the different Items (f.ex.
101)
are listed in f.ex. week 32 AND year 2006, but only for these. In the
above
case the result should be 3.

It seems simple, but I just can not figure it out. Can anybody give me the
formular for this? Thanks.



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

Trevor, you´re a star. That worked perfect for half my needs.

If instead of "101" in the example below the column uses words (f.ex.
"Buttom", Middle" and "Top", what should the formular then be? (it seems that
it your suggestion works with numbers.......).

Thanks and best regards



"Trevor Shuttleworth" skrev:

=SUMPRODUCT((A2:A8=101)*(B2:B8=32)*(C2:C8=2006))

Regards

Trevor


"PedersenJ" wrote in message
...
A spreadsheet contains 3 columns: "Item", "Week no." and "Year".

F.ex.:

A B C
1 Item Week Year
2 101 32 2006
3 101 32 2006
4 101 32 2006
5 101 32 2007
6 101 32 2007
7 102 32 2006
8 102 33 2006

In another cell I wish to count how many of the different Items (f.ex.
101)
are listed in f.ex. week 32 AND year 2006, but only for these. In the
above
case the result should be 3.

It seems simple, but I just can not figure it out. Can anybody give me the
formular for this? Thanks.




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Counting in two columns


If it's text you can use the same formula but you need quotes around the
text, e.g.

=SUMPRODUCT((A2:A8="Top")*(B2:B8=32)*(C2:C8=2006))


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=569220

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
Arithmetical Mode of Criteria in Multiple Non-Adjacent columns Sam via OfficeKB.com Excel Worksheet Functions 4 July 14th 05 09:15 PM
Hidden Columns in Shared Workbooks Rotary Excel Discussion (Misc queries) 1 July 9th 05 12:28 AM
Removing Near-Duplicate Rows, Leaving Those w/Most Data in Specific Columns foofoo Excel Discussion (Misc queries) 1 April 2nd 05 12:02 AM
Counting differences in numbers across columns Ted Metro Excel Worksheet Functions 3 March 11th 05 09:50 PM
Counting the Contents of Two Columns Molochi Excel Discussion (Misc queries) 6 December 22nd 04 08:13 PM


All times are GMT +1. The time now is 05:31 AM.

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"