Page 1 of 1

compare two list

Posted: Thu Dec 17, 2020 3:08 pm
by sna
Hi dear,

I need to compare report for BO list and LOS list.

I want to compare Staff code in BO list with LOGIN in LOS list.if it matches return LOGIN, BRANCH_CODE and NAME in REPORT

I also attached a template

Kind regards,

Re: compare two list

Posted: Fri Dec 18, 2020 2:18 pm
by ChoBkuN
Match > Filter > Copy Paste

Re: compare two list

Posted: Sat Dec 19, 2020 12:15 pm
by sna
No.I need formula or vba to compare then extract to REPORT Sheet

Re: compare two list

Posted: Sun Dec 20, 2020 7:30 am
by snasui
:D Try these formulas:
  1. B2
    =IFERROR(INDEX('LOS List'!$A$2:$D$1063,AGGREGATE(15,6,MATCH('BO List'!$B$2:$B$102,'LOS List'!$A$2:$A$1063&"",0),ROWS(B$2:B2)),MATCH(B$1,'LOS List'!$A$1:$D$1,0)),"")
    Enter > Copy to right and down.
  2. A2
    =IF(B2<>"",ROWS(A$2:A2),"")
    Enter > Copy down.

Re: compare two list

Posted: Sun Dec 20, 2020 12:15 pm
by sna
Thank you 🙏 always work fine