Tags:
create new tag
view all tags

Spreadsheet relative cell referencing

  • TWiki version: twiki20010803
  • Spreadsheet version: 1.0
  • Web server: Apache
  • Server OS: Solaris 5.7

I am trying the Spreadsheet-Plugin but I have problems with relative cell referencing. I have a small table and I like to multiply the previous cell with a constant value. When I'm using absolute cell referencing (e.g. % CALC{"$EVAL($T(R1:C2) * 8)"} % ) it is working as expected but % CALC{"$EVAL($T(R$ROW(0):C$COL(-1)) * 8)"} % shows *main::8.

Example:

Januar 21.0 168 OK --> 8 * R1:C2
Februar 20.0 *main::8 BUG? --> 8 * R$ROW(0):C$COL(-1)
Maerz 22.0    

Debug output:

SpreadSheetPlugin::doFunc: ROW( 0):C$COL(-1 ) start
SpreadSheetPlugin::doFunc: ROW( 0):C$COL(-1 ) returns: 2
SpreadSheetPlugin::getTableRange( R2..R2 ) <-- ???
SpreadSheetPlugin::doFunc: T( R2 ) returns: 
SpreadSheetPlugin::doFunc: EVAL( *8 ) returns: *main::8
SpreadSheetPlugin::doFunc: MAIN( *main::8 ) returns: *main::8

-- BeatJucker - 27 Aug 2001

Answer

There is a documented limitation of the current spreadsheet implementation where you cannot have more then one function per nesting; $T(R$ROW(0):C$COL(-1)) contains two functions, so $ROW() picks up 0):C$COL(-1 as it's parameter, which is incorrect.

This limitation needs to be fixed. If anyone knows how to solve that problem let me know in SpreadSheetPluginDev.

-- PeterThoeny - 28 Aug 2001

SupportStatus:
AnsweredQuestions
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2001-08-28 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.