Combining Index Match Formula - REF error

afinn211

New Member
Joined
Jun 13, 2023
Messages
7
Office Version
  1. 365
Platform
  1. Windows
Hello,

I am using Office 365.

I am trying to combine the below Index Match formulas. Both work independently and return values, but the independent values don't do me any good because I need the intersection of the data, i.e., the place in the table where both values line up next to each other in their respective column. The problem is these values appear in other places, but in only in one place next to each other.

=INDEX(A6:A24806, MATCH(TRUE,(E6:E24806>=1720),0))
=INDEX(A6:A24806, MATCH(MIN(IF(F6:F24806>0,F6:F24806)),F6:F24806,0))

Below is my attempt at combining the formula, but I receive a REF error.
=INDEX(A6:A24806, MATCH(TRUE,(E6:E24806>=1720),0), MATCH(MIN(IF(F6:F24806>0,F6:F24806)),F6:F24806,0))

I think the reference error is due to the first Match formula returning 6380 and the second Match formula returning 12651. I think, if the formula was working correctly, then those numbers would be the same and it would be finding the intersection of the data in the table and then returning the corresponding value in column A.

Any help would be much appreciated!! Thanks.

Andy
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Hummm
Are you sure that the array to fetch the data from is A6:A24806, i.e. a one column list?
 
Upvote 0
Yes, I need to locate a number in column A based on matching values in columns E and F.
 
Upvote 0
Welcome to the MrExcel board!

Your requirement is not clear. Your first formula returns the value from column A in the first row where column E >= 1720. Column E can only first be >=1720 in (at most) one row so how can you be possibly looking for a value from another row based on something happening in column F?

What about making up a small set of dummy data for columns A, E & F where the required conditions are met within the first 10 or 15 rows and post that with XL2BB and explain again in relation to that sample data?
 
Upvote 0
My formulas are just my attempt to do what I need. So they aren’t correct.

What I need is the smallest value greater than zero in column F that has a value in the adjacent column E >=1720. Once that area in the table is found, I need the value from column A.

There are lots of numbers greater than 1720 in column E as well as negative numbers in column F.

I can post a sample data set tomorrow when I have access to my laptop. I greatly appreciate your help!

Andy
 
Upvote 0
What I need is the smallest value greater than zero in column F that has a value in the adjacent column E >=1720. Once that area in the table is found, I need the value from column A.
OK, see if this is getting close. Note, however, that in my sample data there are two rows that contain the lowest value greater than zero in column F that have values >=1720 in column E. This formula returns the value from the first row that meets these conditions.

afinn211.xlsm
AEFGH
6a233g
7b2654
8c18005
9d30008
10e2000-6
11f44440
12g17504
13h1001
14i17304
15j2-2
16
Sheet1
Cell Formulas
RangeFormula
H6H6=INDEX(SORT(FILTER(A6:F24806,(F6:F24806>0)*(E6:E24806>=1720)),6),1,1)
 
Upvote 0
Solution
Thanks so much! That did it. I am not familiar with Index(Sort(Filter. I will definitely need to learn this one!
 
Upvote 0
You're welcome. Glad to help. Thanks for the follow-up. :)
 
Upvote 0

Forum statistics

Threads
1,215,068
Messages
6,122,950
Members
449,095
Latest member
nmaske

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