Tigerexcel
Active Member
- Joined
- Mar 6, 2020
- Messages
- 493
- Office Version
- 365
- 2019
- Platform
- Windows
Book4 | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | |||
1 | ID no. | Course | Unit1 | Unit2 | Unit3 | Unit4 | Unit5 | Unit6 | Unit7 | Unit8 | Countif Credits | Sumproduct Credits | Credits given | |||||||
2 | ID 1 | Diploma | ABC2020 56-P | ABC2040 28-N | ABC1110 30-N | ABC1090 61-C | ABC2690 61-C | ABC2090 28-N | ABC1110 50-P | ABC1040 61-C | 2 | 0 | Diploma | ABC2*P | ABC2*C | ABC2*D | ||||
3 | ID 2 | Certificate | ABC2020 36-N | ABC2090 81-HD | ABC2040 66-C | ABC2040 66-C | ABC2040 66-C | ABC2070 66-C | ABC2140 66-C | ABC2100 66-C | Certificate | ABC2*P | ABC2*C | ABC2*D | ABC1040 | |||||
4 | ID 3 | Degree | ABC2110 50-P | ABC1110 50-P | ABC1110 50-P | ABC1040 61-C | Degree | ABC2*C | ABC2*D | |||||||||||
5 | ID 4 | Diploma | ABC2110 50-P | ABC1110 50-P | ABC1110 50-P | ABC1040 61-C | ||||||||||||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
K2 | K2 | =SUM(COUNTIF(C2:J2,$O$2:$Q$2)) |
L2 | L2 | =SUMPRODUCT(1*(C2:J2=$N$6:$N$8)) |
Press CTRL+SHIFT+ENTER to enter array formulas. |
I can get this to work if I stick with Countif but I'd like to know what I have to tweak to get the Sumproduct to work. Basically in this example I am trying to work out credits based on student results. There is an added complication here in that the number of credits will vary according to the level of qualification so in this system a certificate would receive less credits than a diploma. I think I can work out a lookup/choose option for that part. It's the Sumproduct part that has me puzzled. I have used Sumproduct for a similar example and it worked fine, I get a little closer if I have the credits displayed vertically but I'm still getting #N/A errors so I thought I'd post here. I've only worked out the credits for the first record, once I get clarity for that I'll fill in the rest.