#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 61
Default Excel Formula

I have a spreadsheet with around 8000 rows and 16 columns, with about 30
course codes.

This is a example of my spreadsheet:

C F L
Course Code Semester Students
CHV2O1 1 25
CHV2O1 1 20
CHV2O1 2 19
GLC2O1 1 20
GLC2O1 2 16

I would like to retrun a total of the number of Students in Semester 1
taking CHV2O1 (45), Semester 2 (19) etc.. Hope you can help thanks.


--
Newfie
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,420
Default Excel Formula

=SUMPRODUCT(--(C2:C200="CHV201"),--(F2:F200=2),L2:L200)

--
__________________________________
HTH

Bob

"Newfie809" wrote in message
...
I have a spreadsheet with around 8000 rows and 16 columns, with about 30
course codes.

This is a example of my spreadsheet:

C F L
Course Code Semester Students
CHV2O1 1 25
CHV2O1 1 20
CHV2O1 2 19
GLC2O1 1 20
GLC2O1 2 16

I would like to retrun a total of the number of Students in Semester 1
taking CHV2O1 (45), Semester 2 (19) etc.. Hope you can help thanks.


--
Newfie



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 61
Default Excel Formula

Thank you it works.
--
Newfie


"Bob Phillips" wrote:

=SUMPRODUCT(--(C2:C200="CHV201"),--(F2:F200=2),L2:L200)

--
__________________________________
HTH

Bob

"Newfie809" wrote in message
...
I have a spreadsheet with around 8000 rows and 16 columns, with about 30
course codes.

This is a example of my spreadsheet:

C F L
Course Code Semester Students
CHV2O1 1 25
CHV2O1 1 20
CHV2O1 2 19
GLC2O1 1 20
GLC2O1 2 16

I would like to retrun a total of the number of Students in Semester 1
taking CHV2O1 (45), Semester 2 (19) etc.. Hope you can help thanks.


--
Newfie




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
Excel 2002 Formula: Urgent Conditional Formula Required Right Away - if possible blue[_2_] Excel Discussion (Misc queries) 2 July 11th 07 06:08 PM
Build excel formula using field values as text in the formula val kilbane Excel Worksheet Functions 2 April 18th 07 01:52 PM
Excel Formula Doesn't Execute (Shows formula-not the calcuation) Keys1970 Excel Discussion (Misc queries) 4 November 15th 06 02:12 PM
Excel 2002 formula displayed not value formula option not checked Dean Excel Worksheet Functions 1 February 28th 06 02:31 PM
Converting an Excel formula to an Access query formula Adam Excel Discussion (Misc queries) 1 December 15th 04 03:38 AM


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