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
 
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?
Hi Peter SS_s

You are probably right and looking at the above, the suggestion from alansidman would work best as it picks the columns as opposed to a range.
Thanks again
 
Upvote 0

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
the suggestion from alansidman would work best as it picks the columns as opposed to a range.
It will get very complicated if many more months are added!

Did you try the suggestion by @Snakehips?

.. and is there an answer to my question about the client's Excel version?

This would be more readily expandable and also cover the case that somebody did not get a score and/or grade in the middle as in the last 2 rows below (though these may not be the desired results), as well as if the scores are not numerical (row 1).

24 10 10.xlsm
ABCDEFGHIJKL
1IDNameOct scoreOct gradeDec scoreDec gradeJan ScoreJan GradeMar scoreMar GradeLast gradeLast Score
2P1234John70C+85B80B78+C+C+78+
3P1235Robert60C52C72C+C+72
4P1236Alice80B74C68C92AA92
5P1237Helen56CZZ56
6P1238Thomas95A+85B+B+85
Last Grade (2)
Cell Formulas
RangeFormula
K2:K6K2=LOOKUP(2,1/(C2:J2<>"")/(RIGHT(C$1:J$1,5)="Grade"),C2:J2)
L2:L6L2=LOOKUP(2,1/(C2:J2<>"")/(RIGHT(C$1:J$1,5)="Score"),C2:J2)
 
Upvote 0
Hi Peter_SSs
your solution here gives me both options that would suit my needs so thank you very much.
They use Office 2021, same as myself
GMC
 
Upvote 0
your solution here gives me both options that would suit my needs so thank you very much.
You're welcome.

They use Office 2021, same as myself
Thanks. That does provide another alternative ..

24 10 10.xlsm
CDEFGHIJKL
1Oct scoreOct gradeDec scoreDec gradeJan ScoreJan GradeMar scoreMar GradeLast GradeLast Score
270C+85B80B78+C+C+78+
360C52C72C+C+72
480B74C68C92AA92
556CZZ56
695A+85B+B+85
Last Grade (2)
Cell Formulas
RangeFormula
K2:K6K2=LET(f,FILTER(C2:J2,(RIGHT(C$1:J$1,5)="Grade")*(C2:J2<>""),""),INDEX(f,COLUMNS(f)))
L2:L6L2=LET(f,FILTER(C2:J2,(RIGHT(C$1:J$1,5)="Score")*(C2:J2<>""),""),INDEX(f,COLUMNS(f)))
 
Upvote 0
You're welcome.


Thanks. That does provide another alternative ..

24 10 10.xlsm
CDEFGHIJKL
1Oct scoreOct gradeDec scoreDec gradeJan ScoreJan GradeMar scoreMar GradeLast GradeLast Score
270C+85B80B78+C+C+78+
360C52C72C+C+72
480B74C68C92AA92
556CZZ56
695A+85B+B+85
Last Grade (2)
Cell Formulas
RangeFormula
K2:K6K2=LET(f,FILTER(C2:J2,(RIGHT(C$1:J$1,5)="Grade")*(C2:J2<>""),""),INDEX(f,COLUMNS(f)))
L2:L6L2=LET(f,FILTER(C2:J2,(RIGHT(C$1:J$1,5)="Score")*(C2:J2<>""),""),INDEX(f,COLUMNS(f)))
Thank you
 
Upvote 0

Forum statistics

Threads
1,223,894
Messages
6,175,254
Members
452,623
Latest member
Techenthusiast

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