Self-reference for cell, column and row in worksheet functions
In a worksheet function in Excel, how do you self-reference the cell, column or row you're in? Note that this is extremely useful for conditional formatting. Matt J where F13 is the cell you need to reference: =CELL("Row",F13) yields 13; its row number =CELL("Col",F13) yields 6; its column number; =SUBSTITUTE(ADDRESS(1,COLUMN(F13)*1,4),"1","") yields F; its column letter For a cell to self-reference itself: INDIRECT(ADDRESS(ROW(), COLUMN())) For a cell to self-reference its column: INDIRECT(ADDRESS(1,COLUMN()) & ":" & ADDRESS(65536, COLUMN())) For a cell to self-reference its row: INDIRECT