Search code examples
excelworksheet-functionself-reference

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?


Solution

  • 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