GMC The Macro Man
Board Regular
- Joined
- Mar 23, 2023
- Messages
- 104
- Office Version
- 2021
- Platform
- Windows
Hi there,
Could someone please help me with this formula. I need to count the number of times a number or letter appears in columns C, E & G based on the CLASS in K2.
The attached sheet shows a number of students and their class and in columns C,E & G they have a value which I need to be totaled and entered in to cells N2:Q2
I would normally just take this as a range but its proving difficult as i only want these specific columns
Any help would be appreciated
GMC
Could someone please help me with this formula. I need to count the number of times a number or letter appears in columns C, E & G based on the CLASS in K2.
The attached sheet shows a number of students and their class and in columns C,E & G they have a value which I need to be totaled and entered in to cells N2:Q2
I would normally just take this as a range but its proving difficult as i only want these specific columns
Any help would be appreciated
GMC
Book1 | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | |||
1 | Name | Class | H1 | H2 | T1 | T2 | R1 | R2 | 1 | 2 | 3 | M | |||||||
2 | Aidan | P1 | 1 | 8 | M | 6 | 1 | W | CLASS | P3 | COUNT | 3 | 4 | 4 | 3 | ||||
3 | Amelia | P2 | 2 | B | M | 5 | 1 | S | |||||||||||
4 | Andrew | P3 | 3 | C | 3 | 9 | 1 | ||||||||||||
5 | Ava | P4 | M | 8 | 2 | H | 2 | 4 | |||||||||||
6 | Clara | P1 | 1 | 7 | 1 | U | 2 | K2 = CHOOSE CLASS | |||||||||||
7 | Dillon | P2 | 2 | 1A | 3 | 3 | 4 | N2:Q2 =COUNT COLUMNS C,E and G | |||||||||||
8 | Emily | P3 | 3 | M | 1 | ||||||||||||||
9 | Freddie | P4 | M | 2 | 3 | ||||||||||||||
10 | Georgie | P1 | M | 3 | M | 2 | 2 | 7 | |||||||||||
11 | Jacob | P2 | 2 | 5 | M | 2 | |||||||||||||
12 | Kaiden | P3 | 3 | T | 1 | 1 | M | 3 | |||||||||||
13 | Kayla | P4 | M | 1 | M | A | |||||||||||||
14 | Layla | P1 | 1 | 1 | 4 | 1 | A | ||||||||||||
15 | Lena | P2 | 3 | 8 | 2 | 1 | |||||||||||||
16 | Matthew | P3 | 2 | 8 | 2 | G | 2 | M | |||||||||||
17 | Millie | P4 | M | M | T | 1 | |||||||||||||
18 | Quinn | P1 | 1 | B | 3 | M | E | ||||||||||||
19 | Ruaridh | P2 | 2 | C | M | J | 3 | E | |||||||||||
20 | Sam | P3 | M | 2 | 3 | 3 | |||||||||||||
21 | Saoirse | P4 | M | 2 | P | 3 | |||||||||||||
22 | |||||||||||||||||||
23 | |||||||||||||||||||
Sheet1 |