[Solved] Numbering days in a table

Discuss the word processor
Post Reply
JackK
Posts: 16
Joined: Thu Apr 04, 2013 12:11 pm

[Solved] Numbering days in a table

Post by JackK »

Hi, All!
I've got a table in Writer: the header contain working days in a week: Mon. Tue. Wed. Thu. Fri. I'd like to autonumerate days in a month.

Example (July 2013): when I put 1 into variable x cells should be populated as:

Code: Select all

Mon. Tue. Wed.  Thu.  Fri.
x    x+1  x+2   x+3   x+4
x+7  x+8  x+9   x+10  x+11
x+14 x+15 x+16  x+17  x+18
x+21 x+22 x+23  x+24  x+25
x+28 x+29 x+30
How may I do this?

OO Version: 3.2.1
Last edited by JackK on Thu Jun 20, 2013 12:46 pm, edited 3 times in total.
OpenOffice 3 / Windows 7
User avatar
acknak
Moderator
Posts: 22756
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

Re: Numbering days in a table

Post by acknak »

Just the way you wrote it:

Create a variable; call it "x" or anything you want. Insert > Fields > Other > Variables > Type: Set variable

In your table cells, Insert > Fields > Other > Variables > Type: Insert Formula, Formula: x, x+1, x+2, ...

If you change the value of x (double-click on the "set variable" field), all the formulas will update automatically.
AOO4/LO5 • Linux • Fedora 23
JackK
Posts: 16
Joined: Thu Apr 04, 2013 12:11 pm

Re: Numbering days in a table

Post by JackK »

Thank you for reply.
I added a variable start. Then in a cell I wanted to add a formula start+1 but after click on "Insert" (propably; I have polish version) nothing is happen :roll:
---------
It works :)
---------
But when I changed start the cell does not change :?
---------
It works :) Thanks again.
OpenOffice 3 / Windows 7
Post Reply