Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 783
Default RC format reference

I have the following question from a colleague:

I like to solve the following problem. I have an RC address in one cell
of the form, RC6, (current row, col 6). I like to copy and paste this to
another cell (or copy the conditional format portion involving a formula
of the above address form), but the address in the new place to reflect
its new row, that is, the address should remain as RC6 in the new place.
When I do the copy and paste, the row address changes to an absolute
address of the form R[-4]C6, which is the correct behaviour by the above
definition.

But if I start with a relative R[0]C6, the only form I know for a
relative row format, when copied it gets converted into an absolute RC6
at the new place. Is there a way to get the effect I want, or is this a
known bug (ala feature as defined by MS) in Excel 2000 (9.0.2720)?

TIA,
Alan Beban
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default RC format reference

Not sure I understand. Maybe this will work:

INDIRECT("RC6",0)

It's relative to the row and the column is absolute.


--
Biff
Microsoft Excel MVP


"Alan Beban" wrote in message
...
I have the following question from a colleague:

I like to solve the following problem. I have an RC address in one cell of
the form, RC6, (current row, col 6). I like to copy and paste this to
another cell (or copy the conditional format portion involving a formula
of the above address form), but the address in the new place to reflect
its new row, that is, the address should remain as RC6 in the new place.
When I do the copy and paste, the row address changes to an absolute
address of the form R[-4]C6, which is the correct behaviour by the above
definition.

But if I start with a relative R[0]C6, the only form I know for a relative
row format, when copied it gets converted into an absolute RC6 at the new
place. Is there a way to get the effect I want, or is this a known bug
(ala feature as defined by MS) in Excel 2000 (9.0.2720)?

TIA,
Alan Beban



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,231
Default RC format reference

Alan Beban wrote...
....
. . . I have an RC address in one cell of the form, RC6, (current
row, col 6). . . .


This is a column-absolute, row-relative reference. If it were in, say,
cell X99, it'd be equivalent to the A1-syntax reference $F99.

. . . I like to copy and paste this to another cell (or copy the
conditional format portion involving a formula of the above address
form), but the address in the new place to reflect its new row, that
is, the address should remain as RC6 in the new place. . . .


Note you use the verb COPY. Did you friend use this PRECISELY verb?
Not CUT, MOVE, DRAG or something else?

Under Excel 2003 SP1, with R1C1 range reference syntax in use, I enter
the following formula into cell H3, er, R3C8.

=ISBLANK(RC6)

I then define 3 formula conditional formats.

1. =ISERROR(RC6) produces red background color.
2. =ISTEXT(RC6) produces yellow background color.
3. =ISNUMBER(RC6) produces green background color.

Then I fill this cell into the 3 cells immediately below it. The cell
formulas appear to be identical in each, and so do the conditional
format formulas.

. . . When I do the copy and paste, the row address changes to an
absolute address of the form R[-4]C6, . . .


You should have been able to correct this misunderstanding. This is
STILL a column-absolute, row-relative reference, but instead of
referring to the cell in column 6 in the same row, it's referring to
the cell in column 6 in the row 4 above the row that contains the cell
or conditional formatting formula that contains this reference.

If I drag the 4 cells I have in use so far down 4 rows (and across any
number of columns), the references in the formulas change to R[-4]C6.
CUTTING and pasting would produce the same results.

. . . which is the correct behaviour by the above definition. . . .


Only if your friend means CUT, but not COPY.

. . . But if I start with a relative R[0]C6, . . .


You can enter this, but Excel will IMMEDIATELY convert it to RC6.

. . . the only form I know for a relative row format, . . .


We have some deep misunderstanding of R1C1 reference syntax here!

. . . when copied it gets converted into an absolute RC6 . . .


THIS IS NOT AN ABSOLUTE REFERENCE. As I just stated above, Excel has
always, does now and very, very likely will always treat R[0]C6 as
exactly the same reference as RC6, much as it treats =1+2 and =1+2+0
as exactly the same.

. . . at the new place. Is there a way to get the effect I want, or
is this a known bug (ala feature as defined by MS) in Excel 2000
(9.0.2720)?


The only error here is this person's lack of understanding about R1C1
reference syntax and his/her extremely likely misuse of the word COPY
when s/he means CUT.
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
Carrying format with cell reference to another sheet. [email protected] Charts and Charting in Excel 1 June 2nd 07 07:43 PM
how to reference/copy cell format ??? [email protected] Excel Discussion (Misc queries) 3 August 1st 06 08:02 AM
Reference Cell in custom format???? lil_ern63 Excel Discussion (Misc queries) 3 September 1st 05 02:27 PM
how do I format a cell reference to move as source changes KGray Excel Worksheet Functions 1 August 13th 05 12:41 AM
How do I format a value when using it within a cell reference tha. packmule Excel Worksheet Functions 4 February 3rd 05 09:32 PM


All times are GMT +1. The time now is 07:22 AM.

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"