Feed rate values are in the named rangedata(D6:H16).

This can be done with a two-way INDEX and MATCH formula.

TheINDEX functionreturns the final result.

Core formula is two-way INDEX and MATCH

In the example shown, the formula in K8 is:

(Line breaks added for readability only).

The tricky bit is that material and hardness need to be handled together.

We can do this with the IF function.

Core formula is two-way INDEX and MATCH

Essentially, we use IF to “throw away” irrelevant values before we look for a match.

Details

The INDEX function is given the named rangedata(D6:H16) as for array.

If so, the hardness value is passed through.

Core formula is two-way INDEX and MATCH

If not, IF returns FALSE.

The result is anarraylike this:

Notice the only surviving values are those associated with Low Carbon Steel.

The other values are now FALSE.

Core formula is two-way INDEX and MATCH

This array is returned directly to the MATCH function as the lookup_array.

The lookup value for match comes from K6, which contains the given hardness, 176.

MATCH is configured for approximate match by setting match_type to 1.

Core formula is two-way INDEX and MATCH

Note: hardness values must be sorted in ascending order for each material.

With hardness given as 176, MATCH returns 6, delivered directly to INDEX as the row number.

As before, theMATCHis set to approximate match by setting match_type to 1.

Excel formula: INDEX and MATCH exact match

The original formula now resolves to:

INDEX returns a final result of 0.015, the value from F11.

you’re free to use INDEX to retrieve individual values, or entire rows and columns.

MATCH supports approximate and exact matching, andwildcards(* ?)

Excel formula: INDEX and MATCH approximate match

More than one condition can be tested by nesting IF functions.

Excel formula: Two-way lookup with INDEX and MATCH

Excel formula: INDEX and MATCH approximate match with multiple criteria

Excel INDEX function

Excel MATCH function

Excel IF function

Article image

Article image

Article image

Core formula is two-way INDEX and MATCH