I'm using the Excel MATCH
function, and it works if the lookup_value
is an unmodified number, but it does not always work if the lookup_value
is a calculated number.
To be more specific:
My spreadsheet can ask the user whether or not she would like to use a recommended value for particle size. If she chooses "No
", she has the option of inputting her own value. She can input the value in either imperial units, or metric units. There is a cell for an imperial input and a cell for a metric input. (She can choose which she fills in).
Because all calculations must eventually be done in imperial units, the final particle size box takes the user specified value and either keeps it the way it was (if it were entered as imperial), or converts it back to imperial (if it were entered in metric). It does so using this equation:
=IF(AND(S24="No",U25=""),S25,IF(AND(S24="No",U25<>""),U25/25.4,S23))
Where S24
holds the decision whether or not to use the recommended value, U25
holds the metric input, S25
holds the imperial input, and S23
holds the recommended value. The conversion is from mm to in.
The final particle size is then called by another sheet and used in the MATCH
function. Certain input values (from a drop down menu) in the metric input cell result in a #N/A
error from the MATCH
function.
I have tried removing extraneous spaces, formatting all cells involved to be Numbers with 3 decimal places, and putting the conversion from metric to imperial directly into the lookup_value
cell (e.g. instead of pulling the final particle size, I entered the following in the lookup_value cell, but it still could not find 0.375 in the lookup_array
)
=9.525/25.4
Does anybody know why the MATCH
function is only working for some of the lookup_values
even though they are just conversions that only entailed multiplying each imperial value by 25.4 then dividing that value by 25.4?