top of page

Counting Your Hits - Excel array formula


VLOOKUP can only be used to search for hits in the first column of the range of cells you select. Today when searching for a dozen or so loan numbers that might be listed in any one of more than hundred columns in a spreadsheet with thousands of rows, I wanted an easy way to check and see if any one of them was listed anywhere the spreadsheet without CTRL + F for each one. This formula does the trick:

=SUM(IF(ISERROR(SEARCH(A1,$A$10:$H$12000)),,1))

[THIS IS AN ARRAY FORMLA - WHEN ENTERING PRESS CTRL + SHIFT + ENTER. Brackets should appear on either side.]

In the smaller example spreadsheet shown in the screen grab below we enter the formula in cell B1 to search for the first value in cell A1, and then pull it down with CTRL + D. We can quickly see which of the values we need to actually find in the spreadsheet. This formula may be most useful when you have a long list of search terms and you're fairly certainly that only a few of them appear in a very long spreadsheet that needs to be searched.

See this site for more information on the formula:


 

Sean O'Shea has more than 20 years of experience in the litigation support field with major law firms in New York and San Francisco.   He is an ACEDS Certified eDiscovery Specialist and a Relativity Certified Administrator.

​

The views expressed in this blog are those of the owner and do not reflect the views or opinions of the owner’s employer.

​

If you have a question or comment about this blog, please make a submission using the form to the right. 

Your details were sent successfully!

© 2015 by Sean O'Shea . Proudly created with Wix.com

bottom of page