sheet 1
PNR AMT
1 H2JUFL 2343
2 W9CGJJ 4397
3 K9IC8T 12770
4 C9NL2Q 17707
5 K4NG2S 10584
6 MYVIVD 5769
sheet 2
PNR AMT
1 K9IC8T 12770
2 C9NL2Q 17707
3 MYVIVD 5769
4 H2JUFL 2343
5 K4NG2S 10584
6 W9CGJJ 4397
How do I reconcile the data in the two sheets to see if the data matches or not? First row is the pnr no. and the second row is amount for that pnr. I would like to first match the pnr and if that is true then match the corresponding amount and state "ok" if true and if false show amount of sheet 2 and in case if pnr of sheet 1 is not present in sheet 2 then state no entry
I have tried =IF(ISERROR(VLOOKUP(a1,sheet2!$aD$1:$a$6,1,FALSE)),"no entry","")
. This works for pnr. but I am unable to go further.