Conditional Match within Index/Match

neely615

New Member
Joined
May 7, 2014
Messages
1
First time posting here, but it really seems like some experts hang around, so I appreciate any help I can get.

I have a list of numbers that I want to cross reference against another list (database column below), and return values in adjacent cells. Problem is that the query doesn't need to be an exact match, but within some range. In the example I am using value +- (0.005/100 * value). An easy way to think of this is two conditions must be met:
1) (Positive Match - Query ) < ( (0.005/100) * Query)
2) (Positive Match - Query ) > (-1 * (0.005/100) * Query)

QueryReturn ValueDatabaseValuecont'n 1condt'n 2
520.317N519.518NTrueFalse
520.3217NTrueTrue
521.519MFalseTrue

<tbody>
</tbody>

The condition columns are here for illustration. When I actually implement this, there will be a column of queries and return values adjacent to values that satisfy query (there should only be one value to satisfy both conditions, so multiple matches aren't an issue).

I assume there is some way to have a nested if statement within an index/match function, but I can't seem to figure it out. I don't think an array would be used here, but any suggestions are welcome.

Thank you for the help.
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).

Forum statistics

Threads
1,221,310
Messages
6,159,173
Members
451,543
Latest member
cesymcox

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top