ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Excel Formula (https://www.excelbanter.com/excel-discussion-misc-queries/196939-excel-formula.html)

Newfie809

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

Bob Phillips[_3_]

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




Newfie809

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






All times are GMT +1. The time now is 08:06 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com