From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Moe Subject: Re: spreadsheet, generate a column beg end Date: Tue, 25 Mar 2014 23:30:15 +0100 Message-ID: References: <87bnwuf65o.fsf@gilgamesch.quim.ucm.es> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42286) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSZqn-0007jQ-SU for emacs-orgmode@gnu.org; Tue, 25 Mar 2014 18:29:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WSZqe-0004mH-Er for emacs-orgmode@gnu.org; Tue, 25 Mar 2014 18:29:41 -0400 Received: from mail-forward4.uio.no ([2001:700:100:10::33]:55588) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSZqe-0004aI-71 for emacs-orgmode@gnu.org; Tue, 25 Mar 2014 18:29:32 -0400 Received: from exim by mail-out4.uio.no with local-bsmtp (Exim 4.80.1) (envelope-from ) id 1WSZpq-00053m-Jg for emacs-orgmode@gnu.org; Tue, 25 Mar 2014 23:28:42 +0100 In-reply-to: <87bnwuf65o.fsf@gilgamesch.quim.ucm.es> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Uwe Brauer Cc: emacs-orgmode@gnu.org Hi, Here's one way to do it, applied to an example that takes less space: With ten rows, say we want to count down from 365 to 358 in the middle of the middle column ($2), leaving an empty row on top and bottom (@1 and @10). Set the value of @2$2 to 365, either manually or (as below) in the table formula. Then set the rest of the range from rows @3 down to @9 to decrement by one from the cell above (@-1): | | | | | | 365 | | | | 364 | | | | 363 | | | | 362 | | | | 361 | | | | 360 | | | | 359 | | | | 358 | | | | | | #+TBLFM: @2$2=365::@3$2..@9$2=@-1-1 Yours, Christian Uwe Brauer writes: > Hello > > In most spreadsheets I know, it is possible to generate easily a column > say starting in 365 ending in 23.[1] > > Is there any way to do this in the org spreadsheet, without a loop? > > thanks > > Uwe Brauer > > Footnotes: > [1] (Or in matlab without a loop)