Location of value in 2d table...

spacely

Board Regular
Joined
Oct 26, 2007
Messages
248
I have a value which occurs in a table. Lots of rows and columns. I just need the row number in which the value occurs. I don't think Match can handle a 2d array.

Dave
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Does the value only appear once in the table?
Are you looking for something like this?

Excel Workbook
ABCDEFGH
3
4KenPeterSam
5PaulBillJohnName of interestRowColumn
6BobFredJackFred32
7BenTomSimon
8
Find Row and Column
 
Upvote 0
See if this example helps

Data in A2:C6
Criteria in E2:E4

[Table="class: grid"][tr][td="bgcolor: #DCE6F1"][/td][td="bgcolor: #DCE6F1"]
A
[/td][td="bgcolor: #DCE6F1"]
B
[/td][td="bgcolor: #DCE6F1"]
C
[/td][td="bgcolor: #DCE6F1"]
D
[/td][td="bgcolor: #DCE6F1"]
E
[/td][td="bgcolor: #DCE6F1"]
F
[/td][/tr]
[tr][td="bgcolor: #DCE6F1"]
1
[/td][td]
Header1​
[/td][td]
Header2​
[/td][td]
Header3​
[/td][td][/td][td]
Criteria​
[/td][td]
Row​
[/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
2
[/td][td]
10​
[/td][td]
1​
[/td][td]
11​
[/td][td][/td][td]
122​
[/td][td]
5​
[/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
3
[/td][td]
9​
[/td][td]
103​
[/td][td]
13​
[/td][td][/td][td]
44​
[/td][td]
4​
[/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
4
[/td][td]
44​
[/td][td]
22​
[/td][td]
15​
[/td][td][/td][td]
39​
[/td][td]
Not Found​
[/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
5
[/td][td]
67​
[/td][td]
122​
[/td][td]
17​
[/td][td][/td][td][/td][td][/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
6
[/td][td]
2​
[/td][td]
56​
[/td][td]
8​
[/td][td][/td][td][/td][td][/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
7
[/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][/tr]
[/table]


Array formula in F2 copied down
=IFERROR(SMALL(IF(A$2:C$6=E2,ROW(A$2:C$6)),1),"Not Found")
confirmed with Ctrl+Shift+Enter, not just Enter

M.
 
Upvote 0
Thanks all. It's solved. Not sure how to close this thread as solved.....
That is all you have to do, just a reply like that.
 
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,772
Members
452,353
Latest member
strainu

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