简体   繁体   中英

Index Match Lookup

I have two excel spreadsheets; one containing field with a social security number, name, date of birth, etc and the other containing the same info but the date of birth is left blank. What formula would I use to match the social on workbook one to a social on workbook two and return the date of birth for that record from workbook one to workbook two?

练习册一

工作簿二

I don't have the exact context right, but here's how you can use an Index/Match formula to get this.

In your DOL Life Census worksheet cell J189, put this formula:

=Index('BAS Census'!H:H,match(A189&B189,'BAS Census'!A:A&'BAS Census'!B:B,0))

and enter with CTRL+SHIFT+DELETE .

(I recommend having both sheets open, and just entering manually, selecting those ranges with your mouse.) What this does is return a value from an Index (column), based a which row. So, it's going to return some value from "BAS Census column H", based on what row A189 ("Broussard") and B189 ("James") are in BAS Census Columns A and B, respectively.

I used First and Last names to get a match, as I assume there may be two people with the same first or last name. We could be even more specific by checking for First, Last, and SS#. You'd just add &C189 to the first part of the Match() formula, and add the range you expect the socials to be in ( &'BAS Census'!C:C ) to the end of the second part.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM