Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Defining Cell Row Value Remotely in Formula not Code

Would like to figure out how to do a formula where the row number
portion of the cell location being referenced is defined elsewhere.
i.e. =CONCATENATE(AA127," ",AB127," ",AC127)
or =AA127
where the '127' value is obtained from the value of another cell
or from the location of another named cell

The defining can be done via macro, but I wish the formula's to be in
place, and not being written by the macro.

If was using macro to write would look something like this:
Range("AA" & cellrow)
where ("AA" & cellrow) returns with value of 'AA127' due to 'cellrow'
being assigned a value of 127

In other words I wish to be able to put a row # value in a designated
cell, and have all the formulas use that row number in their
calculations, or alternately have a macro designated a defined name to
a desired cell of the row # desired and get the row value that way, or
maybe I need a whole new perspective on the solution.

I have roughly 200 cells which would be updating via this method, and
writing to them all directly from code is slow, which is why I want to
limit the writing from code.

Using Excel 2002 on WinXP

TIA,
Danny
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,440
Default Defining Cell Row Value Remotely in Formula not Code

=INDIRECT("AA"&A1)

If the value of A1 is 127

--

Kind Regards,

Niek Otten

Microsoft MVP - Excel

"Danny" wrote in message
om...
Would like to figure out how to do a formula where the row number
portion of the cell location being referenced is defined elsewhere.
i.e. =CONCATENATE(AA127," ",AB127," ",AC127)
or =AA127
where the '127' value is obtained from the value of another cell
or from the location of another named cell

The defining can be done via macro, but I wish the formula's to be in
place, and not being written by the macro.

If was using macro to write would look something like this:
Range("AA" & cellrow)
where ("AA" & cellrow) returns with value of 'AA127' due to 'cellrow'
being assigned a value of 127

In other words I wish to be able to put a row # value in a designated
cell, and have all the formulas use that row number in their
calculations, or alternately have a macro designated a defined name to
a desired cell of the row # desired and get the row value that way, or
maybe I need a whole new perspective on the solution.

I have roughly 200 cells which would be updating via this method, and
writing to them all directly from code is slow, which is why I want to
limit the writing from code.

Using Excel 2002 on WinXP

TIA,
Danny



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
defining a name in a cell? mp@ea New Users to Excel 3 July 15th 07 08:50 AM
Defining cell with only through 1 - 32 Zee New Users to Excel 2 September 23rd 06 11:49 PM
Defining Trial Period of VBA Code ExcelMonkey[_40_] Excel Programming 1 January 29th 04 08:09 PM
Defining ranges in VB code Rachael Moody Excel Programming 5 January 27th 04 02:21 PM
Defining a formula Bob Kilmer Excel Programming 0 July 24th 03 01:18 AM


All times are GMT +1. The time now is 02:11 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"