Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Excel Reference To Current Cell

How do I obtain a reference to the current cell?

For example, if I want to display the width of column A, I could use the following:

=CELL("width", A2) 

However, I want the formula to be something like this:

=CELL("width", THIS_CELL) 
like image 692
Steven Avatar asked Apr 16 '09 18:04

Steven


People also ask

How do you reference a cell above the current cell?

Is there a way to reference the cell above? The simple way is to reference using [COLUMN_NAME]2 (the number being the current row number minus one).

How do you reference a cell relative to a cell?

By default, every cell in Excel has a relative reference. In relative references, type “=A1+A2” in cell A3, copy and paste the formula in cell B3, and the formula automatically changes to “=B1+B2.” In absolute references, the cell address does not change when the formula is copied.


1 Answers

Several years too late:

Just for completeness I want to give yet another answer:

First, go to Excel-Options -> Formulas and enable R1C1 references. Then use

  =CELL("width", RC) 

RC always refers the current Row, current Column, i.e. "this cell".

Rick Teachey's solution is basically a tweak to make the same possible in A1 reference style (see also GSerg's comment to Joey's answer and note his comment to Patrick McDonald's answer).

Cheers
:-)

like image 182
imix Avatar answered Oct 05 '22 06:10

imix