SOLVED

Excel : Search for data in an excel data file from another excel file having the list of items

%3CLINGO-SUB%20id%3D%22lingo-sub-2418360%22%20slang%3D%22en-US%22%3EExcel%20%3A%20Search%20for%20data%20in%20an%20excel%20data%20file%20from%20another%20excel%20file%20having%20the%20list%20of%20items%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2418360%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20two%20excel%20files.%20One%20file%20has%20a%20complete%20data.%20Another%20excel%20file%20has%20a%20list%20of%20items.%20I%20want%20to%20look%20for%20the%20items%20in%20data%20file%2C%20which%20are%20from%20the%20list%20in%20another%20file.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2418360%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2418499%22%20slang%3D%22en-US%22%3ERe%3A%20Excel%20%3A%20Search%20for%20data%20in%20an%20excel%20data%20file%20from%20another%20excel%20file%20having%20the%20list%20of%20items%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2418499%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1071675%22%20target%3D%22_blank%22%3E%40Niraj1%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20need%20to%20test%20each%20record%20within%20the%20data%20file%20to%20determine%20whether%20it%20meets%20the%20conditions%20set%20by%20the%20list.%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3D%20FILTER(data%2C%20COUNTIFS(extract%2C%20complete))%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3Ewhere%20'extract'%20is%20the%20list%20of%20records%20to%20return%20and%20'complete'%20is%20the%20corresponding%20field%20in%20the%20source%20'data'.%26nbsp%3B%3C%2FP%3E%3CP%3E%3CEM%3ENote%3A%20FILTER%20is%20an%20Excel%20365%20function%3C%2FEM%3E.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2418558%22%20slang%3D%22en-US%22%3ERe%3A%20Excel%20%3A%20Search%20for%20data%20in%20an%20excel%20data%20file%20from%20another%20excel%20file%20having%20the%20list%20of%20items%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2418558%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1071675%22%20target%3D%22_blank%22%3E%40Niraj1%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20you%20don't%20have%20FILTER()%20function%20you%20may%20add%20helper%20column%20with%20COUNTIF%20as%20inside%20of%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F214174%22%20target%3D%22_blank%22%3E%40Peter%20Bartholomew%3C%2FA%3E%26nbsp%3Bformula%20and%20filter%20on%20this%20column%20excluding%20zeroes.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

I have two excel files. One file has a complete data. Another excel file has a list of items. I want to look for the items in data file, which are from the list in another file.

 

2 Replies
best response confirmed by Niraj1 (New Contributor)
Solution

@Niraj1 

You need to test each record within the data file to determine whether it meets the conditions set by the list.

= FILTER(data, COUNTIFS(extract, complete))

where 'extract' is the list of records to return and 'complete' is the corresponding field in the source 'data'. 

Note: FILTER is an Excel 365 function.

@Niraj1 

If you don't have FILTER() function you may add helper column with COUNTIF as inside of @Peter Bartholomew formula and filter on this column excluding zeroes.