Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get the row and column number from within a cell in Excel using only formulas without macros

Is there a way to get the row and column of any given cell by inserting a formula into that cell?

So cell A1 would say (1,1), C2 would read (3, 2), etc. This would be kind of a self reference in a way.

like image 358
Raheel Khan Avatar asked Nov 30 '22 14:11

Raheel Khan


2 Answers

To self reference a cell, use

=CONCATENATE("(",COLUMN(), ", ",ROW(),")")
like image 169
chris neilsen Avatar answered Dec 05 '22 17:12

chris neilsen


=CONCATENATE("(",COLUMN(A1), ", ",ROW(A1),")")

Edit: Removed unnecessary function call.

like image 35
ApplePie Avatar answered Dec 05 '22 16:12

ApplePie