Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
elbows
 
Posts: n/a
Default Having cell contents enter into cell referenced


I couldn't explain it very well in the title, but thanks for reading
anyway.

I'm sure that there are other ways to do this where this question would
be moot, but want I want to do is use the actual contents of cells in a
cell reference.

For example,
Rhode Island starts at row 2 and goes to row 373.
I have a row describing RI where there is a cell with a value of 2 and
another with a value of 373.
Then, I might want another cell that does =average(c2:c373) but I don't
know how to get the 2 and 373 into the formula.

The reason I want to do it this way is that my data are 373 rows X 50
states and I want another sheet that answers all the questions I have
to have 1 row for each state.

Thanks.


--
elbows
------------------------------------------------------------------------
elbows's Profile: http://www.excelforum.com/member.php...fo&userid=7449
View this thread: http://www.excelforum.com/showthread...hreadid=521090

  #2   Report Post  
Posted to microsoft.public.excel.misc
Ron Rosenfeld
 
Posts: n/a
Default Having cell contents enter into cell referenced

On Fri, 10 Mar 2006 09:44:27 -0600, elbows
wrote:


I couldn't explain it very well in the title, but thanks for reading
anyway.

I'm sure that there are other ways to do this where this question would
be moot, but want I want to do is use the actual contents of cells in a
cell reference.

For example,
Rhode Island starts at row 2 and goes to row 373.
I have a row describing RI where there is a cell with a value of 2 and
another with a value of 373.
Then, I might want another cell that does =average(c2:c373) but I don't
know how to get the 2 and 373 into the formula.

The reason I want to do it this way is that my data are 373 rows X 50
states and I want another sheet that answers all the questions I have
to have 1 row for each state.

Thanks.


IF the start row is in A1, and the last row is in B1, and the data is in column
C, then:

=AVERAGE(OFFSET(C1,A1-1,0,B1-A1+1))

should work
--ron
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
How do I get a number or letter to represent cell contents? Formula help Excel Discussion (Misc queries) 2 February 25th 06 11:51 PM
Getting contents of a cell when cell reference is in the sheet A Nelson Excel Discussion (Misc queries) 3 October 5th 05 06:46 PM
Function syntax to compare cell contents ES Excel Worksheet Functions 2 May 18th 05 03:53 PM
Adding contents of one cell to a range of cells. CLJinVA Excel Worksheet Functions 1 February 10th 05 10:19 PM
Display actual contents of cell xmasbob Excel Discussion (Misc queries) 1 December 6th 04 05:09 PM


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