Requirement:
The user has text values in col B and number values in col C. The user needs a formula that returns the text in col J of the lookup table IF cell in col B matches cell in col K AND the cell value in col C is >= value in col L AND <= value in col M.
Solution:
=IFERROR(INDEX($J$1:$J$4,SMALL(IF($K$1:$K$4=B2,IF(C2>=$L$1:$L$4,IF(C2<=$M$1:$M$4,ROW($J$1:$J$4)-ROW($J$1)+1))),1)),0)
Obtained from the OzGrid Help Forum.
Solution provided by NBVC.
See also: Index to Excel VBA Code and Index to Excel Freebies and Lesson 1 - Excel Fundamentals and Index to how to… providing a range of solutions and Index to new resources and reference sheets
See also:
How to use a formula to return multiple matches in separate rows |
How to use match formulae: input data range based on cell value |
How to match positive and negative values within subgroups |
How to compare 2 date ranges when name matches |
Click here to visit our Free 24/7 Excel/VBA Help Forum where there are thousands of posts you can get information from, or you can join the Forum and post your own questions.