Need to find a value that matches two columns of criteria. Possible VLOOKUP

前端 未结 5 1722
不思量自难忘°
不思量自难忘° 2020-12-11 09:05

Update Below -- 6/4

I have two worksheets in excel. One is a list of donors with their check#/amount/ Donor ID ( \"donations\" worksheet) a

5条回答
  •  一个人的身影
    2020-12-11 09:35

    To compare two sets of data by matching several fields and obtain another field as a result of the match, I suggest to add a new field to each database to create a concatenated value of the Fields to match, then use a VLOOKUP and COUNTIF formulas combined.

    Let’s use the sample data provided by Jeeped, in which we have: Data A: Quickbooks - range D1:M24 and Data B: Donations – range R1:W23, to be extended to C1:M24 and Q1:W23 respectively

    1. Add Field “Key” to concatenate the Fields to match (2 fields in this case, but also works for more), use | as separator.

    Data A: Add Field “Key” in Column C and enter this formula

    =CONCATENATE($E2,"|",$M2)
    

    Data B: Add Field “Key” in Column Q and enter this formula

    =CONCATENATE($V2,"|",$W2)
    
    1. Enter formulas to match concatenated fields and retrieve required information (also indicates items duplicated)

    Data A: Add this formula in column N

    =IF(COUNTIF($Q$1:$Q$23,$C2)>1,
    "Duplicated: "&COUNTIF($Q$1:$Q$23,$C2),
    IFERROR(VLOOKUP($C2,$Q$1:$W$23,2,0),""))
    

    enter image description here

    Data B: Add this formula in column X

    =IF(COUNTIF($C$1:$M$24,$Q5)>1,
    "Duplicated: "&COUNTIF($C$1:$M$24,$Q5),
    IFERROR(VLOOKUP($Q5,$C$1:$M$24,2,0),""))
    

    enter image description here

提交回复
热议问题