Hi,
How can I find the position of an item in a matrix? The function MATCH only works with arrays, not matrices... I want to know both line and column relative position
Thanks
Hi,
How can I find the position of an item in a matrix? The function MATCH only works with arrays, not matrices... I want to know both line and column relative position
Thanks
Last edited by Coaster; 03-18-2010 at 01:27 AM.
MATCH will only work with Vectors.
Returning the address in one cell is a relatively expensive process, generally it's best to split into two to reduce workload:
A2: =MIN(IF(B1:D100=A1;COLUMN(B1:D1)+(ROW(B1:B100)/1000000)))
confirmed with CTRL + SHIFT + ENTER
A3: =ADDRESS(MOD(A2,1)*1000000;INT(A2))
confirmed with Enter
The Array will return first match based on Column - ie A50 would be found before B4
If you want ROW to precede COLUMN (ie find B4 before A50) then switch COLUMN & ROW in the Array and modify subsequent ADDRESS function accordingly.
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
tks for the explanation!
however, I need more help. I got that to work but now I don't know what to do with it to do what I want to do...I'll attach an .xls file so you can understand what I want.
Thanks
=max(index((c5:j11=c16)*b5:b11,))&b4&max(index((c5:j11=c16)*c4:j4,))
worked perfectly! thanks
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks