Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to build an Excel formula with offsets

Status
Not open for further replies.

fredjonze

Technical User
Apr 9, 2001
38
US
Hi,

Is there a way to build a formula using the Excel range.offset function? My experiments so far have created a formula like...

=123+456

Instead of what I want...

=B4+B7

I need to return a column/row reference instead of the value in the cell. Since I'm building the spreadsheet dynamically I don't really know the columns that will contain the target refrences so it is difficult to use the "=B" & cstr(lCurrentColumn + 3) kind of formula builder.

Any hints or ideas are appreciated.

 
address function may help

Jamie Gillespie
j-gillespie@s-cheshire.ac.uk
 
Take a look at the Address, Formula and FormulaR1C1 property of the Range object.

Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top