Show last score in table

GMC The Macro Man

Board Regular
Joined
Mar 23, 2023
Messages
104
Office Version
  1. 2021
Platform
  1. Windows
Hi everyone

On the table below, I'm trying to write a formula that will look at columns C,E and H and return their LAST score in Column I.
I would have been able to do this if the 3 columns where together, but because they're in separate columns, I'm struggling.
Any help would be greatly appreciated

TIA
GMC

Book1
ABCDEFGHI
1IDNameOct scoreOct gradeJan ScoreJan GradeMar scoreMar GradeLast score
2P1234John70C+80B78C+78
3P1235Robert60C72C+72
4P1236Alice80B68C92A92
5P1237Helen56C56
6P1238Thomas95A+90A85B+85
Sheet1
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Is this too simplistic?
Book3
ABCDEFGHI
1IDNameOct scoreOct gradeJan ScoreJan GradeMar scoreMar GradeLast score
2P1234John70C+80B78C+78
3P1235Robert60C72C+72
4P1236Alice80B68C92A92
5P1237Helen56C56
6P1238Thomas95A+90A85B+85
7 
Sheet12
Cell Formulas
RangeFormula
I2:I7I2=IFERROR(INDEX(C2:I2,COUNTA(C2:H2)-1),"")

HTH
 
Upvote 0
.. another very simple one

24 10 10.xlsm
ABCDEFGHI
1IDNameOct scoreOct gradeJan ScoreJan GradeMar scoreMar GradeLast score
2P1234John70C+80B78C+78
3P1235Robert60C72C+72
4P1236Alice80B68C92A92
5P1237Helen56C56
6P1238Thomas95A+90A85B+85
Last Score
Cell Formulas
RangeFormula
I2:I6I2=LOOKUP(9^9,C2:G2)
 
Upvote 0
Hi team,
Thanks to everyone for replying and any of the results would have been great, however when i gave this to my client, they asked if I could do this with their grade and not the score and also they have added another date :mad:

Some of the formulas above only deal with numbers but as this is text it would need to be changed so from this NEW table, would you be able to help me find the formula that will look at columns D,F,H and J and return their LAST grade in Column K.
Thanks again

Best Score.xlsx
ABCDEFGHIJK
1IDNameOct scoreOct gradeDec scoreDec gradeJan ScoreJan GradeMar scoreMar GradeLast grade
2P1234John70C+85B80B78C+C+
3P1235Robert60C52C72C+C+
4P1236Alice80B74C68C92AA
5P1237Helen56C84BB
6P1238Thomas95A+99A90A85B+B+
Sheet1
 
Upvote 0
For me it is quite a similar formula for text:

24 10 10.xlsm
ABCDEFGHIJK
1IDNameOct scoreOct gradeDec scoreDec gradeJan ScoreJan GradeMar scoreMar GradeLast grade
2P1234John70C+85B80B78C+C+
3P1235Robert60C52C72C+C+
4P1236Alice80B74C68C92AA
5P1237Helen56C84BB
6P1238Thomas95A+99A90A85B+B+
Last Grade
Cell Formulas
RangeFormula
K2:K6K2=LOOKUP("zz",C2:J2)
 
Upvote 0
For me it is quite a similar formula for text:

24 10 10.xlsm
ABCDEFGHIJK
1IDNameOct scoreOct gradeDec scoreDec gradeJan ScoreJan GradeMar scoreMar GradeLast grade
2P1234John70C+85B80B78C+C+
3P1235Robert60C52C72C+C+
4P1236Alice80B74C68C92AA
5P1237Helen56C84BB
6P1238Thomas95A+99A90A85B+B+
Last Grade
Cell Formulas
RangeFormula
K2:K6K2=LOOKUP("zz",C2:J2)
Hi Peter_SSs, thanks for looking.
Your formula, was quite simplistic which was great, 1st one just looking at numbers and the 2nd looking at text, but I know this client and they keep changing things so what if they were to change the format of the score (which I have seen them do for their reporting)
For instance on column E, the results could be this,
E2= 85+
E3= 52>
E4= 74
E5= 84<A
E6= 99
So they are not number formats and may in fact sometimes be text. It seems strange but it is the way they report some of their results, so if I had to, what would be the best way to just look at columns D,F,H & J and report the last grade
Thanks again
 
Upvote 0
but I know this client and they keep changing things
Hard to cover every possibility. Next thing they will have 3 scores per month and want the middle one of the second last month. ;)

What version of Excel is this client using? (or perhaps they keep changing that too? :eek:)

Have you tried any of the other suggestions above?
 
Upvote 0
In I2

=IF(AND(E2="",G2=""),C2,IF(AND(E2<>"",C2<>"",H2=""),E2,G2))
Hi there, thanks for looking at my query,
The client has added an extra date for checking so with your formula, how would i make the change to capture this.

Thanks again

Best Score.xlsx
ABCDEFGHIJK
1IDNameOct scoreOct gradeDec scoreDec gradeJan ScoreJan GradeMar scoreMar GradeLast grade
2P1234John70C+85B80B78C+C+
3P1235Robert60C52C72C+C+
4P1236Alice80B74C68C92AA
5P1237Helen56C84BB
6P1238Thomas95A+99A90A85B+B+
Sheet1
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,154
Members
453,021
Latest member
Justyna P

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