Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Rob T
 
Posts: n/a
Default Using a cell value for row in R1C1


Hi everyone,

Maybe a slightly bizarre question and I don't know if it's possible or
not.

What I'd like to do is use a value in a cell to be used in as the row
value in an R1C1 function.

e.g.

Column A goes from rows 1 - 47 so I put 47 in a cell and name the cell
"BotRow".

I then have a formula which would be something like:

=sum(R1C1:R"BotRow"C1)

Is there any way of doing this

The actual use of this is so that where I have a whole grid of formulas
and want to change the range they're looking at, I don't have to change
all the formulas, just a value in one cell.

Any help appreciated,

Rob


--
Rob T
------------------------------------------------------------------------
Rob T's Profile: http://www.excelforum.com/member.php...o&userid=28497
View this thread: http://www.excelforum.com/showthread...hreadid=480993

  #2   Report Post  
Ron Coderre
 
Posts: n/a
Default Using a cell value for row in R1C1


Here are some options:

If using R1C1 style:
=SUM(OFFSET(R1C1,0,0,BotRow,1))

If using A1 style:
=SUM(OFFSET(A1,0,0,BotRow,1))

If using either style:
=SUM(INDIRECT("R1C1:R"&BotRow&"C1",0))

Do any of those help?

Regards,
Ron


--
Ron Coderre
------------------------------------------------------------------------
Ron Coderre's Profile: http://www.excelforum.com/member.php...o&userid=21419
View this thread: http://www.excelforum.com/showthread...hreadid=480993

  #3   Report Post  
Rob T
 
Posts: n/a
Default Using a cell value for row in R1C1


Excellent, that first one was just the ticket!

Thanks for the help.

Rob


--
Rob T
------------------------------------------------------------------------
Rob T's Profile: http://www.excelforum.com/member.php...o&userid=28497
View this thread: http://www.excelforum.com/showthread...hreadid=480993

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
Cell color based upon cell value My View Excel Discussion (Misc queries) 11 July 6th 05 03:59 AM
cell color index comparison MINAL ZUNKE New Users to Excel 1 June 30th 05 07:11 AM
Cell Change Color - Need Help alani New Users to Excel 3 June 29th 05 03:50 PM
Function syntax to compare cell contents ES Excel Worksheet Functions 2 May 18th 05 03:53 PM
VLookup resulting in a blank cell... KempensBoerke Excel Worksheet Functions 1 October 28th 04 09:57 PM


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