Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Referring to a cell by entering an integer; RANGE functions

I need to grab the contents of a cell and put it into a formula. I would
have a fixed location into which I type an integer (say, 23). In another cell
would be a formula that would use the contents of B23, as in B23/12. The B
is a constant, as in $B[integer_in_fixed_location].

What's going on is I have two long columns of numbers, A1 and B1 through A200
and B200. I'm looking for ways to look at numbers within a range of rows. I
can easily hand-key in the range of interest, but I want to have two cells
into which I can type in a stop and stop row.

Any ideas? thanks.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 913
Default Referring to a cell by entering an integer; RANGE functions

On Sat, 24 May 2008 15:15:03 -0400, Tim Murray
wrote:

I need to grab the contents of a cell and put it into a formula. I would
have a fixed location into which I type an integer (say, 23). In another cell
would be a formula that would use the contents of B23, as in B23/12. The B
is a constant, as in $B[integer_in_fixed_location].

What's going on is I have two long columns of numbers, A1 and B1 through A200
and B200. I'm looking for ways to look at numbers within a range of rows. I
can easily hand-key in the range of interest, but I want to have two cells
into which I can type in a stop and stop row.

Any ideas? thanks.



If you fixed location is C1 you can use the formula INDEX(B1:B200,C1)
wherever needed. If C1 holds 23, then INDEX(B1:B200,C1) gives the
value in cell B23.

Hope this helps. / Lars-Åke
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 913
Default Referring to a cell by entering an integer; RANGE functions

On Sat, 24 May 2008 19:35:26 GMT, Lars-Åke Aspelin
wrote:

On Sat, 24 May 2008 15:15:03 -0400, Tim Murray
wrote:

I need to grab the contents of a cell and put it into a formula. I would
have a fixed location into which I type an integer (say, 23). In another cell
would be a formula that would use the contents of B23, as in B23/12. The B
is a constant, as in $B[integer_in_fixed_location].

What's going on is I have two long columns of numbers, A1 and B1 through A200
and B200. I'm looking for ways to look at numbers within a range of rows. I
can easily hand-key in the range of interest, but I want to have two cells
into which I can type in a stop and stop row.

Any ideas? thanks.



If you fixed location is C1 you can use the formula INDEX(B1:B200,C1)
wherever needed. If C1 holds 23, then INDEX(B1:B200,C1) gives the
value in cell B23.

Hope this helps. / Lars-Åke


And if you want a range in the B column with the first and last row
given by the contents of cells C1 and C2 respectively you can use
OFFSET(B1,C1-1,0,C2-C1+1,1)

Lars-Åke

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default Referring to a cell by entering an integer; RANGE functions

On Sat, 24 May 2008 15:15:03 -0400, Tim Murray wrote:

I need to grab the contents of a cell and put it into a formula. I would
have a fixed location into which I type an integer (say, 23). In another cell
would be a formula that would use the contents of B23, as in B23/12. The B
is a constant, as in $B[integer_in_fixed_location].

What's going on is I have two long columns of numbers, A1 and B1 through A200
and B200. I'm looking for ways to look at numbers within a range of rows. I
can easily hand-key in the range of interest, but I want to have two cells
into which I can type in a stop and stop row.

Any ideas? thanks.



=INDIRECT(ADDRESS(cell_with_row_number,2))

If cell_with_row_number contains 23, the above will return the contents of B23
--ron
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Referring to a cell by entering an integer; RANGE functions

On Sat, 24 May 2008 15:44:19 -0400, Ron Rosenfeld wrote:
On Sat, 24 May 2008 15:15:03 -0400, Tim Murray wrote:

I need to grab the contents of a cell and put it into a formula. I would
have a fixed location into which I type an integer (say, 23). In another
cell
would be a formula that would use the contents of B23, as in B23/12. The B
is a constant, as in $B[integer_in_fixed_location].

What's going on is I have two long columns of numbers, A1 and B1 through
A200
and B200. I'm looking for ways to look at numbers within a range of rows.
I
can easily hand-key in the range of interest, but I want to have two cells
into which I can type in a stop and stop row.

Any ideas? thanks.



=INDIRECT(ADDRESS(cell_with_row_number,2))

If cell_with_row_number contains 23, the above will return the contents of

B23
--ron


Thanks. A combination of your and Lars's answers were utilized.



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Referring to a cell by entering an integer; RANGE functions

On Sat, 24 May 2008 15:40:57 -0400, Lars-Åke Aspelin wrote:

And if you want a range in the B column with the first and last row given
by the contents of cells C1 and C2 respectively you can use
OFFSET(B1,C1-1,0,C2-C1+1,1)

Lars-Åke


Thanks. A combination of your and Ron's answers were utilized.

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
Referring to first cell in a range FARAZ QURESHI Excel Discussion (Misc queries) 5 December 26th 07 05:14 PM
Formula referring to a dynamic range in a different workbook mr tom Excel Worksheet Functions 6 March 29th 07 08:56 AM
Sumif referring to range names formulas not updating Excel_Still_Stumps_ME Excel Worksheet Functions 1 September 19th 06 08:14 PM
How do I use indirect when referring to a named range in a closed Ed Green Excel Worksheet Functions 3 May 22nd 06 08:01 PM
Preventing user entering duplicate values in a cell range Thomas Peters Excel Worksheet Functions 1 November 30th 05 08:00 PM


All times are GMT +1. The time now is 09:17 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"