Excel Array Formula to find when value falls in range specified in two columns
top of page

Excel Array Formula to find when value falls in range specified in two columns


This is an Excel array formula that can be used to return a specified value when a given value falls between a number range specified in two other columns. So in this example, we're checking to see if the value in column G falls between the ranges listed in columns B and C, and if it does return the corresponding value in column A.

{=INDEX(A:A,MATCH(1,(G2>=B:B)*(G2<=Sheet1!C:C),0))}

This is an array formula, so when entering it, you need to press CTRL + SHIFT + ENTER, so that the formula is surrounded by 'brace' brackets {}. So we can see that when a weight of 158 is given for Jake LaMotta, the formula correctly identifies that he's a middleweight, which is a boxer weighing between 155 and 160 pounds. The 119 to 122 Super bantamweight class is omitted on this spreadsheet, so a boxer in this class, Hozumi Hasegawa at 120 is not assigned a weight class by the formula. This is the advantage that the formula has over a VLOOKUP formula which can only be used to find the weight class which is nearest to the given weight.


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