Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Excel – Find Column and Row from Table

I’m trying to build a Sudoku calculator using only Excel (no VBA). As part of the process, I’m using the Position table (see image) as my reference for each cell. If I look at say position 12 in the table, how would I pull column 4 in one formula and row 2 in another formula?

enter image description here

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Use AGGREGATE:

Row:

=AGGREGAT(15,7,(ROW($N$5:$V$13)-MIN(ROW($N$5:$V$13))+1)/($N$5:$V$13=12),1)

COLUMN:

=AGGREGAT(15,7,(COLUMN($N$5:$V$13)-MIN(COLUMN($N$5:$V$13))+1)/($N$5:$V$13=12),1)

replace the =12 with = and your cell reference.

But if you use base 9 with two digits, you can just parse the number:

ie:

enter image description here

Now the first digit + 1 is the row and the second + 1 is the column

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading