Formula to find the column and row of a unique value within a table?

Intermediate

New Member
Joined
Apr 27, 2012
Messages
13
Hi,

Say I have a 3x3 grid containing numbers 1-9, populated in rows from left to right. I need two formulae that will tell me the column and the row of any number, eg. "8" = column 2, row 3.

123
456
789

<tbody>
</tbody>







Thanks in advance for any help you can offer.
Much Appreciated.
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Row\Col
A​
B​
C​
D​
E​
F​
G​
1​
rowcol
2​
1
2
3
8
3
2
3​
4
5
6
4​
7
8
9

In F2 control+shift+enter, not just enter:

=IFERROR(1/(1/MIN(IF($A$2:$C$4=E2,ROW($A$2:$C$4)-ROW($A$2)+1))),"")<strike></strike>

In G2 control+shift+enter, not just enter:

=IFERROR(1/(1/MIN(IF($A$2:$C$4=E2,COLUMN($A$2:$C$4)-COLUMN($A$2)+1))),"")<strike></strike>
 
Upvote 0
Hey Aladin,

Thanks for your quick reply. That works really well... I don't pretend to understand array formulae yet but I can cut and paste someone else's! Maybe one day!

Thanks

Intermediate.

Row\Col
A​
B​
C​
D​
E​
F​
G​
1​
rowcol
2​
1
2
3
8
3
2
3​
4
5
6
4​
7
8
9

<tbody>
</tbody>


In F2 control+shift+enter, not just enter:

=IFERROR(1/(1/MIN(IF($A$2:$C$4=E2,ROW($A$2:$C$4)-ROW($A$2)+1))),"")<strike></strike>

In G2 control+shift+enter, not just enter:

=IFERROR(1/(1/MIN(IF($A$2:$C$4=E2,COLUMN($A$2:$C$4)-COLUMN($A$2)+1))),"")<strike></strike>
 
Upvote 0

Forum statistics

Threads
1,215,039
Messages
6,122,799
Members
449,095
Latest member
m_smith_solihull

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