Formula help

aysam

Board Regular
Joined
Jun 24, 2009
Messages
224
Office Version
  1. 2010
Platform
  1. Windows
I have a school timetable with 100 rows and 100 columns and I want to count how many science classes are there for each grade. I have a column for each school subject
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Book1
ABC
1Math4
2Science
3History
4Science
5Science
6History
7Math
8Art
9Music
10Science
Sheet1
Cell Formulas
RangeFormula
C1C1=COUNTIF(A:A,"science")
 
Upvote 0
Or somethign like this if you have 2 criteria. Yellow would be variable and you could input what you want there to provide a different output.

Book1
ABCDEFGH
1SubjectGradeOutputGrade1
2Math12SubjectScience
3Science1
4History1
5Science2
6Science1
7History2
8Math2
9Art2
10Music2
11Science3
Sheet1
Cell Formulas
RangeFormula
E2E2=COUNTIFS(A:A,H2,B:B,H1)
 
Upvote 0
Book1
ABC
1Math4
2Science
3History
4Science
5Science
6History
7Math
8Art
9Music
10Science
Sheet1
Cell Formulas
RangeFormula
C1C1=COUNTIF(A:A,"science")
Thanks for your reply but it is not thst simple
 
Upvote 0
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

It would help if you could post some sample data.

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
So appreciated. Here s a sample of my data
 

Attachments

  • timetable.jpg
    timetable.jpg
    208.1 KB · Views: 7
Upvote 0
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

It would help if you could post some sample data.

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
I should try
 
Upvote 0

Forum statistics

Threads
1,215,589
Messages
6,125,695
Members
449,250
Latest member
azur3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top