Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default How do I store through a cell that contains a cell address in it?

I have an Excel (2003) cell that contains a derived address of another cell
in my spreadsheet. For example I may be at Cell j20, and in that cell
I have the absolute addtess $B$16. I want to set $B$16 to a specific
value. This address can change, so I can't just "hard code" the $B$16
somewhere else. I have to do an indirect store through J20 TO $B$16, and
place my datum at $B$16. However, $B$16 can change with respect to
other conditions in the sheet. I can do the equivalent of a "Load Indirect"
easily. How do I do a "Store Indirect".
Thankx!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default How do I store through a cell that contains a cell address in it?

Consider using a macro:

Sub kitty()
adrs = Range("J20").Value
Range(adrs).Value = Application.InputBox(prompt:="Enter datum:", Type:=1)
End Sub

make sure you have already loaded the correct address in J20 and then run
the macro.
--
Gary''s Student - gsnu200802


"Big Gray Cat" wrote:

I have an Excel (2003) cell that contains a derived address of another cell
in my spreadsheet. For example I may be at Cell j20, and in that cell
I have the absolute addtess $B$16. I want to set $B$16 to a specific
value. This address can change, so I can't just "hard code" the $B$16
somewhere else. I have to do an indirect store through J20 TO $B$16, and
place my datum at $B$16. However, $B$16 can change with respect to
other conditions in the sheet. I can do the equivalent of a "Load Indirect"
easily. How do I do a "Store Indirect".
Thankx!

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default How do I store through a cell that contains a cell address in it?

A formula can only affect the cell that it is in. It can not write to another
cell. Either look at using Gary's macro or you will need to re-engineer your
solution...
--
HTH...

Jim Thomlinson


"Big Gray Cat" wrote:

I have an Excel (2003) cell that contains a derived address of another cell
in my spreadsheet. For example I may be at Cell j20, and in that cell
I have the absolute addtess $B$16. I want to set $B$16 to a specific
value. This address can change, so I can't just "hard code" the $B$16
somewhere else. I have to do an indirect store through J20 TO $B$16, and
place my datum at $B$16. However, $B$16 can change with respect to
other conditions in the sheet. I can do the equivalent of a "Load Indirect"
easily. How do I do a "Store Indirect".
Thankx!

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
Store cell value and set to zero noyau Excel Discussion (Misc queries) 3 April 10th 08 02:11 PM
store address in a cell and use it in formula gbalamani Excel Discussion (Misc queries) 1 April 17th 07 10:36 AM
Data Validation: Store cell address instead of value in the cell? WillW Excel Discussion (Misc queries) 1 January 31st 07 02:22 AM
Store max value of changing cell q5 Excel Worksheet Functions 0 July 22nd 05 04:05 AM
store some of the information from one cell into another bsantona Excel Discussion (Misc queries) 1 February 10th 05 02:35 PM


All times are GMT +1. The time now is 12:07 AM.

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

About Us

"It's about Microsoft Excel"