INDEX MATCH help

excelos

Well-known Member
Joined
Sep 25, 2011
Messages
592
Office Version
  1. 365
Platform
  1. Windows
hello,

I want to use the index-match functions and would like some help.

I wrote this function:

=INDEX($C$212:$AM$212,212,MATCH(>0,$C$212:$AM$212,0))

I want it to search in the range $C$212:$AM$212 and return the location of the first non zero cell.

However, it does not seem to accept the >0 in the value field.

Any idea?

Apart from that, is the function okay?

Thanks!
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
If you are looking for the first numeric value then use MATCH(0,$C$212:$AM$212,-1), the -1 looks for a value greater than the search term

The 212 in the INDEX should be 1 as it is referring to the row in the array defined by $C$212:$AM$212
 
Upvote 0
If you are looking for the first numeric value then use MATCH(0,$C$212:$AM$212,-1), the -1 looks for a value greater than the search term

The 212 in the INDEX should be 1 as it is referring to the row in the array defined by $C$212:$AM$212

Hello,

Following your instructions, I wrote this:

INDEX($C$212:$AM$212,1,MATCH(1,$C$212:$AM$212,-1))

I put MATCH(1 and not MATCH(0 because the -1 at the end searches for greater or EQUAL, while I want only greater than zero.

However, I think it works in the reverse, it returns the value of the cell that is the first non zero, but from the end of the range and not the beginning.

Any idea?

It seems your advice only works when the array is appropriately sorted, which is not the case in my array.
 
Last edited:
Upvote 0
This will give the position of the first column greater than 0.
Excel Workbook
CDEFGH
2104
211
21200670
Sheet
 
Upvote 0
Sorry .... I hadn't read the info on Match correctly ... it returns the lowest value greater than the requested parameter and the values need to be in order which is no good for you I am afraid :(
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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