I am not able to upload file. It is working.
Try this
Range R2:W2
Mch Code |1st Date |2nd Date| 1st Reading| 2nd Reading| Diff
ARRAY formula in R3, then drag down
=IFERROR(INDEX($A$3:$A$62,SMALL(IF(COUNTIF($R$2:$R2,$A$3:$A$62)=0,ROW($A$3:$A$62),""),1)-ROW($A$3)+1),"")
ARRAY formula in S3, then drag across
=IFERROR(INDEX($C$3:$G$62,SMALL(IF(IF(($A$3:$A$62=$R3),(VALUE($C$3:$C$62)),"")=SMALL(IF((($A$3:$A$62=$R3)*VALUE($C$3:$C$62)),VALUE($C$3:$C$62),""),1),ROW($A$3:$A$62),""),1)-ROW($C$3)+1,MATCH(S$2,$C$2:$G$2,0)),"")
Format cells as per requirement
ARRAY formula is used
To enter ARRAY formula
Paste the formula
Press F2
Press Ctrl+Shift+Enter keys together.
formula will be covered with{} brackets by excel.
Bookmarks