Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Khoshravan
 
Posts: n/a
Default address command for a range of cells, not one cell

address comand returns value of a single cell, by giving the cekk address as
text input.
Is it possible to return a range of cells, instead of one vell either by
address or any other command?
In the following formula:
VLOOKUP($A1239;[runs_input.xls]run1!$G$4:$G$145;1;0)
I want to give [runs_input.xls]run1!$G$4:$G$145 range,
as an input so that I can copy run1 easily from run1 to run50.
--
Rasoul Khoshravan Azar
Civil Engineer
Osaka, Japan
  #2   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default address command for a range of cells, not one cell

As long as Runs_Input.xls is going to be open, you could use =indirect().

=VLOOKUP($A1239;indirect("[runs_input.xls]run"&row(a1)&"!$G$4:$G$145";1;0)
and drag down.

But this will break as soon as runs_input.xls is closed (and excel
recalculates).

If this is a one time thing, you can build a formula that helps build the
formula:

="$$$$$=vlookup($A1239;[runs_input.xls]run" & row(a1) & "!$G$4:$G$145;1;0)"
drag down the column.

Now select that range and
edit|copy
edit|paste special|values

Now with that range still selected
edit|replace
what: $$$$$=
with: =
replace all

Do a test on a short list (run1, run2, run3). If you make a mistake in your
formula, you may end up dismissing 50 dialog boxes trying to find the correct
file.


Khoshravan wrote:

address comand returns value of a single cell, by giving the cekk address as
text input.
Is it possible to return a range of cells, instead of one vell either by
address or any other command?
In the following formula:
VLOOKUP($A1239;[runs_input.xls]run1!$G$4:$G$145;1;0)
I want to give [runs_input.xls]run1!$G$4:$G$145 range,
as an input so that I can copy run1 easily from run1 to run50.
--
Rasoul Khoshravan Azar
Civil Engineer
Osaka, Japan


--

Dave Peterson
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
UDF is updateing cells on another sheet with count from current sheet. John Excel Discussion (Misc queries) 3 March 20th 06 03:58 PM
Determine if Cell Address is within a Range John Michl Excel Worksheet Functions 4 December 22nd 05 07:59 PM
Concatenate cells without specifying/writing cell address individually Hari Excel Discussion (Misc queries) 4 January 3rd 05 06:05 PM
Merging Cells but have each cell counted in the range of merged c. gats13 Excel Worksheet Functions 2 November 9th 04 07:14 PM
How do you delete one cell from a range of protected cells Cgbilliar Excel Worksheet Functions 2 November 3rd 04 10:42 PM


All times are GMT +1. The time now is 07:49 PM.

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"