How to refer to current sheet in a formula

  • Thread starter Thread starter Poxypig
  • Start date Start date
P

Poxypig

I want to have a named formula which always refers to a cell on the
sheet it is on. When I define the formula it is automatically changed
to refer to the sheet active when I defined it. E.g. =$B$2*3 becomes
=sheet1!$B$2*3. This is no good for use on sheet 2 where I want the
formula to refer to that sheet's $B$2 (equivalent of sheet2!$B$2). I
have tried entering =!$B$2*3 which works initially but recalculates
using the $B$2 on the sheet active when the recalculation is done.
 
hi, Poxypig !

-briefly-... when defining your 'named-formula'... try with: =!$b$2*3+0*now()

hth,
hector.
 
The formula in Define Name > Refers To uses Workbook-level names.
If there are duplicate names, the Workbook-level name will be the one
on the Sheet where it was last defined.
Close and open the Define Name window for each Sheet to see
what path Excel appended to your entries.
To differentiate between Workbook-level names and Sheet-level names
use a utility like Name Lister in Walkenbach's Power Utility Pak or use
name tools mentioned elsewhere.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top