Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Syntax for a relative formula

I am generating an xml file in excel format and need to generate formulas
which will refer to cells on the current row.
Using R1C1 format you can put a formula like

=RC[-4]

to refer to the 4th column to the left of the cell with the formula. In
A1B1 format there is no equivalent (that I know of).

Does anyone know of a way of achieving the same when you know neither the
current cell reference nor row number? The offset function will not work
because I don't have the current cell reference.

One solution would be if there were function which returns the current cell
reference, so that the following would work

=offset (myreference(), 0,-4,1,1)

but I cannot find a myreference() type function. Row() and column() exist
to return the current row and col, but not the two together.

aaagh, a solution has to exist, but I can't find it.

Ian
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 138
Default Syntax for a relative formula

Just a thought, but you could try saying something like, if row() and
col() = row() and col(), then offset, otherwise nothing.

Essentially it will always be true and therefore offset from the
current position.

Ian Murphy wrote:
I am generating an xml file in excel format and need to generate formulas
which will refer to cells on the current row.
Using R1C1 format you can put a formula like

=RC[-4]

to refer to the 4th column to the left of the cell with the formula. In
A1B1 format there is no equivalent (that I know of).

Does anyone know of a way of achieving the same when you know neither the
current cell reference nor row number? The offset function will not work
because I don't have the current cell reference.

One solution would be if there were function which returns the current cell
reference, so that the following would work

=offset (myreference(), 0,-4,1,1)

but I cannot find a myreference() type function. Row() and column() exist
to return the current row and col, but not the two together.

aaagh, a solution has to exist, but I can't find it.

Ian


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Syntax for a relative formula


Sorry, I don't understand what you mean. How would a formula like

= iif (row() and col() = row() and col(), offset(......

do anything, you are still stuck with the offset() requiring a cell
reference, which is lacking.

Ian Murphy
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
Dynamic Range with unused formula messing up x axis on dynamic graph [email protected] Charts and Charting in Excel 2 February 2nd 06 08:02 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 07:48 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
Named SUM Formula with relative refernce(s) Werner Rohrmoser Excel Worksheet Functions 2 April 20th 05 04:56 PM
Formula syntax error - chinese and gibberish Joshua Fandango Excel Discussion (Misc queries) 3 March 29th 05 01:27 PM


All times are GMT +1. The time now is 01:35 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"