using index and match --problem with formula-- sometimes get a match and sometimes when there is data in the table get N/A

cgat

New Member
Joined
Sep 22, 2022
Messages
7
Office Version
  1. 2019
Platform
  1. Windows
worksheet table​
yx
0.1​
0(0.1)(0.2)
(2.3)​
(0.2769)(0.1216)
(2.4)​
(2.5)​
0.0167(0.0624)
(2.6)​
(2.7)​
0.0698(0.1279)0.0923
(2.8)​
0.0692(0.1111)
predictionsformula used



yxprediction
-2.3​
-0.1​
-0.12162​
-2.3​
0​
-0.2769​
-2.5​
-0.2​
#N/A​
-2.5​
0​
0.016675​
-2.7​
-0.2​
#N/A​
=INDEX($K$37:$P$43,MATCH(T36,$K$37:$K$43,0),MATCH(U36, $K$37:P$37,0))
I cannot figure out what I am doing wrong. I would greatly appreciate any help.​
 
The index formula is referencing the cells in the first table. The first table has the if statement in its cells.
The values (such as -0.2769 and -0.1216 in the first row of the first table) have the if statement in their cells.
The first table was referencing another table which you have not seen that had a bunch of DIV/0 errors when the averages were being generated,
so I generated the table you have seen because I was trying to get rid of DIV/0.

I think, maybe naively, the issue is with the index formula. Maybe the problem is with my if statement in the table that is being referenced to get the prediction.
I do not understand why sometimes the index statement works when referencing cells and sometimes it does not. I am currently sorting all the columns to get rid
of the cells (make them totally blank) that have "" from the if statement.
 
Upvote 0

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Ahoy NC ,

I just realized I did not answer your original question. The formula in the cell giving the #N/A was the original formula that I posted. All the formulas in the prediction col
were copy and pasted from the first cell in the column.

Thank you so much for your help.
 
Upvote 0
I think your INDEX formula is fine. The issue could be from the DIV/0 errors.
 
Upvote 0
Solution

Forum statistics

Threads
1,223,894
Messages
6,175,254
Members
452,623
Latest member
Techenthusiast

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