INDEX/MATCH works inconsistently, gives some correct values then #N/A

scottryan

New Member
Joined
Aug 3, 2016
Messages
4
I have a sheet called ROPdata that looks up matching values from another sheet in order to create a graph.

ROPdata

BCD
1DepthROP (min/m)Gas (%)
2400.00.12.0
3400.20.12.1
4400.40.12.2
5400.6#N/A#N/A
6400.8#N/A#N/A
7401.0#N/A#N/A
8401.2#N/A#N/A
9401.4#N/A#N/A
10401.6#N/A#N/A
11401.8#N/A#N/A
12402.0#N/A#N/A
13402.2#N/A#N/A
14402.4#N/A#N/A
15402.6#N/A#N/A
16402.8#N/A#N/A
17403.0#N/A#N/A
18403.2#N/A#N/A
19403.4#N/A#N/A
20403.6#N/A#N/A
21403.8#N/A#N/A

<tbody>
</tbody>

The formula that I'm using to return the ROP values is =INDEX('ROPGasImport'!B:B,MATCH(B2,'ROPGasImport'!A:A,0)) and a similar one for the gas values. It works and returns the proper values until it gets to the 400.6 Depth value and then it gives the error message. The Depth column is created using =PreviousCell+0.2 to produce regular intervals. If I manually type in 400.6 in B5, the correct values are returned until it comes to 401.6 and then I get the #N/A again. I also tried starting the depth interval at 400.2 to see if still gave 3 correct returns before the error but it gave 2 and then an error from 400.6 on again, so it doesn't seem to like when the Depth is ***.6 unless it's manually typed in.

I tried SHIFT-ALT-ENTER when typing in the formula and also using --B2 in the match equation in case it wasn't being recognized as a number but those didn't fix anything. I could use VLOOKUP but I'd like to see if anyone has an idea why this isn't working first.

Excel tables to the web >> Excel Jeanie HTML 4
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce

Forum statistics

Threads
1,215,268
Messages
6,123,966
Members
449,137
Latest member
yeti1016

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