If you have the 365 (see fluff above) - but I generally do this for my own amusement anyway.
James Thank you for this I managed to use the formula above, modified it slightly to reflect the maximum range of data that I have and it gives me everything I needed. The only improvement I would like to make is to assist with the next stages of what the complete sheet does.
The hole reason for sorting the data this way is so that duplicate tag numbers can then be remerged reflecting the highest risk range so that clients can prioritise their repairs. All of this works fine, what I would like to do is be able to count the rows in Column A of the maintenance Data sheet that have a tag number (can be text or number) and replace this count in place of the 20000 row number in the formula. is this at all possible either with a formula or VBA?
=LET(a,UNIQUE('Maintenance Data'!$A$2:$A$20000),b,MAXIFS('Maintenance Data'!$Y$2:$Y$20000,'Maintenance Data'!$A$2:$A$20000,a),c,SORTBY(a,b,-1),d,SEQUENCE(ROWS(c)),e,XLOOKUP('Maintenance Data'!$A$2:$A$20000,c,d),SORTBY('Maintenance Data'!$A$2:$Y$20000,e,,'Maintenance Data'!$Y$2:$Y$20000,-1))
Thanks for all the support so far everyone, I am just 1 step away, I think