Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
jim37055
 
Posts: n/a
Default R1C1 format using a variable?


Is it possible to use a variable to designate the column in R1C1 format?


If so, what is the proper way to do it?


Example:

R5C"my variable goes here"


--
jim37055
------------------------------------------------------------------------
jim37055's Profile: http://www.excelforum.com/member.php...o&userid=27788
View this thread: http://www.excelforum.com/showthread...hreadid=472969

  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default

One way:

=INDIRECT("R5C" & myVar,FALSE)

Another way:

=INDEX(R5,myVar)

In article ,
jim37055
wrote:

Is it possible to use a variable to designate the column in R1C1 format?


If so, what is the proper way to do it?


Example:

R5C"my variable goes here"

  #3   Report Post  
bj
 
Posts: n/a
Default

check out indirect() in help

"jim37055" wrote:


Is it possible to use a variable to designate the column in R1C1 format?


If so, what is the proper way to do it?


Example:

R5C"my variable goes here"


--
jim37055
------------------------------------------------------------------------
jim37055's Profile: http://www.excelforum.com/member.php...o&userid=27788
View this thread: http://www.excelforum.com/showthread...hreadid=472969


  #4   Report Post  
jim37055
 
Posts: n/a
Default


Thanks guys, that worked.


--
jim37055
------------------------------------------------------------------------
jim37055's Profile: http://www.excelforum.com/member.php...o&userid=27788
View this thread: http://www.excelforum.com/showthread...hreadid=472969

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
Why does my format keep changing in the cell? Denise Excel Discussion (Misc queries) 0 August 30th 05 04:23 PM
Copy cell format to cell on another worksht and update automatical kevinm Excel Worksheet Functions 21 May 19th 05 11:07 AM
Office2000: Conditional format behaves strangely Arvi Laanemets Excel Discussion (Misc queries) 1 April 7th 05 08:47 AM
why does currency format change to number format? Cassie Excel Discussion (Misc queries) 3 March 18th 05 06:57 PM
protecting format Esmerelda Excel Discussion (Misc queries) 1 February 25th 05 12:53 PM


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