LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-26-2014, 05:10 PM   #1
1sweetwater!
Member
 
Registered: Nov 2011
Location: South Central Montana USA
Distribution: Debian derivitives switched to Mint from Ubuntu but play with them all time and brain permitting...
Posts: 252

Rep: Reputation: Disabled
best way to do multiple cells in a column of a row in a Table or something like it


This was a tuffy to condense into a descriptor:
I'm trying to do a chart for medication reminder and tracking. I do not have any spread sheet skills and not sure if this would be the answer?. I'm using LibreOffice latest in Mint 17 Cinnamon. I would like to do something like the attached but with minimal typing. Some of the columns or rows in this may be copied and pasted. Others containing multiple cells will not copy exaxtly. Is there a better way or program that will allow me to do this easier? The top 4 rows were completed by typing and copy and pasting. Long and confusing process. The bottom 4 rows were a copy and paste effort that did not copy all the cells. Each row has four cells in the first column and two cells in the second column and only one cell of these colums each is pasted when row is copied and pasted into next row. I have to do this for a whole Calendar. Anyway I see its way complicated for me to figger out. Might also be helpful to have a program with a few more tweeks too for modifying the table lines thickness and style individually also. Libe is limited in this department. thnxL8R It said attachment was in there
 
Old 11-26-2014, 06:21 PM   #2
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
not sure what you are trying to demonstrate (there is no attachment that you mention).

this is not a spreadsheet but a simple egg-timer for reminders... have fun:
Code:
[schneidz@hyper ~]$ cat egg-timer.ksh 
#!/bin/bash
# Filename: progbar-timer.sh
# Version: 110212
# Author: robz
# Improved from the "Egg Timer" script, a countdown timer with progress bar.
# This one has an indication of time remaining provided by Zenity's progress
# bar function. As usual you'll need to find a sound and icon for the variables
# below, you might find the icon variable is correct, check the directory.

ICON=/usr/share/app-install/icons/kalarm.png              # Existing icon?
SOUND=/home/schneidz/music/Finding-Forever/01-Intro--Intro--Intro--Intro--Intro--Intro--Intro--Intro--Intro--Intro--Intro--Intro--Intro--Intro--Intro--Intro.mp3                               # Your sound pref.

COUNT=$(zenity --title "Egg Timer" --window-icon $ICON --text "No decimals"\
    --entry-text "eg. 10s or 5m or 2h" --entry)           # Input dialogue.
if [ $? = 1 ]; then exit $?; fi

# Determine number of seconds to count down from depending on input suffix.
case "${COUNT: -1}" in
    "S" | "s" ) COUNT=$(echo $COUNT | sed -s "s/[Ss]//") ;;
    "M" | "m" ) COUNT=$(echo $COUNT | sed -s "s/[Mm]//"); ((COUNT*=60)) ;;
    "H" | "h" ) COUNT=$(echo $COUNT | sed -s "s/[Hh]//"); ((COUNT*=3600)) ;;
    *         ) zenity --error --text "<span color=\"red\"><b>\
    \nUse the form of 10s or 5m or 2h\nNo decimals allowed either.</b></span>"
    sh -c "$0"                                            # On error restart.
    exit ;;
esac

START=$COUNT                                              # Set a start point.

until [ "$COUNT" -eq "0" ]; do                            # Countdown loop.
    ((COUNT-=1))                                          # Decrement seconds.
    PERCENT=$((100-100*COUNT/START))                      # Calc percentage.
    echo "#Time remaining$(echo "obase=60;$COUNT" | bc)"  # Convert to H:M:S.
    echo $PERCENT                                         # Outut for progbar.
    sleep 1
done | zenity --title "Egg Timer" --progress --percentage=0 --text=""\
    --window-icon=$ICON --auto-close                      # Progbar/time left.
if [ $? = 1 ]; then exit $?; fi
notify-send -i $ICON "Egg Timer > ## TIMES UP ##"         # Attention finish!
/usr/bin/canberra-gtk-play --volume 4 -f $SOUND           # Ding-dong finish!
zenity --notification --window-icon="$ICON"\
    --text "Egg Timer > ## TIMES UP ##"                   # Indicate finished!
 
Old 11-26-2014, 07:58 PM   #3
1sweetwater!
Member
 
Registered: Nov 2011
Location: South Central Montana USA
Distribution: Debian derivitives switched to Mint from Ubuntu but play with them all time and brain permitting...
Posts: 252

Original Poster
Rep: Reputation: Disabled
I am trying to easily make a printable form document page that I may make check marks on to record the meds that were taken by date, day, and time. I've had problems with attachments being sent through this service before. Will try again.
Forgot to save file as compatable format first time. It was sent as ODT. This time it's PDF.
I managed to do something like I want and it is attached but it was a pain as some cells were left empty and the last three cells of some rows were blank with lines through them. WTF is wrong with Libre? it's either sofware or hardware actin weird.
 
Old 11-27-2014, 06:53 AM   #4
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,532

Rep: Reputation: Disabled
Spreadsheets are programs that are programmable, so what you want should be able to be done, either simply using cell references or creating a macro, (much) more difficult.

Best bet is to either use another area of your sheet to send/reference the neccessary data, or use a new sheet especially for this, (more difficult to explain & understand).

Your 'attachment' is not showing, maybe the file is too big.

Basically you should be able to copy & paste the cells contents that you want into another area of the sheet, & select that area for printing, if that is what you are after.
 
Old 11-27-2014, 08:27 AM   #5
1sweetwater!
Member
 
Registered: Nov 2011
Location: South Central Montana USA
Distribution: Debian derivitives switched to Mint from Ubuntu but play with them all time and brain permitting...
Posts: 252

Original Poster
Rep: Reputation: Disabled
I pretty much have it done using LibreOffice Writer Table and copying/pasting data.
If I split cells in one column or more it seemed to make the document unstable. Data was disappearing or being moved to another are mysteriously and column widths changed much the same... Of course I may have input close to too much for the space available in the Table?
Attached Thumbnails
Click image for larger version

Name:	1medz.jpg
Views:	23
Size:	212.9 KB
ID:	16945  
 
Old 11-27-2014, 01:43 PM   #6
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,532

Rep: Reputation: Disabled
I can't really comment about using tables in a WP as I very rarely used one.
 
Old 12-01-2014, 08:19 AM   #7
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,885
Blog Entries: 13

Rep: Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931
The suggestions I have may be useful or not, it all depends on your preferences.

If you format a cell by date you'll notice that you can specify a date using Day of Week, therefore you can use like 8/17/14 and it will appear as Sun 8/17/14.

Further, if you format a call by time you'll notice that you can specify the date and time, just not Day of Week; however you can if you use a custom format.

Notice the following:
  1. When you select Date formatting and select a format like "Sun 8/17/14" as a standard format, it will show you that the format string is NN MM/DD/YY
  2. When you select Time formatting and select a format like "8/17/14 08:00 AM" as a standard format, it will show you taht the format string is MM/DD/YY HH:MM AM/PM
  3. And then you can customize that by changing the format string to show something like NN MM/DD/YYYY HH:MM:SS which will give you "Sun 8/17/14 08:00 AM"
  4. There are other variations, for instance if you want the full day name to be printed out, it is NNNN or if you want a full year, it is YYYY.
  5. The spreadsheet likely will save your customized format.
My next suggestion is to use more rows and colums. I understand that you may want this to be compressed into one sheet. Perhaps if you can represent what you want in the spreadsheet first, then you can improve it to be sizes which fit for you. Right now it seems the issue is representation and organization of it all.

I'd make the day or week, date, and time my first column, then have the next colum reserved for the medication and leave open two or three rows below so that you have spacing for multiple medication names. Say you have 3 meds for Sunday at 8:00 AM, the reserve rows 1, 2, and 3 for that all and put the next time on row 4. Column-wise to fit Sunday through Saturday on one row, you then have say Column A be the date and time, Column B to be the medications to be taken, and Column C to be the empty space for the checkbox. You can even use borders around the cells in column C to make an actual checkbox. Next, you can size the colums and rows to suit you. For instance a date and time takes up some space and you want to read it. So make it fit properly. Same thing for the medication, you should be able to read it, so leave according space. The checkboxes can be small, therefore you can narrow down column C to something suitable. And then repeat that pattern for the seven days of the week.

If it all doesn't fit properly in 8.5x11 in portrait form, then switch to landscape where the horizontal is 11". My point is to get it formatted to suit you first, and then worry about the size. You should be able to use formulas to increase the day and times accordingly; however that is something you'd have to experiment with.

Another suggestion is with seven days left to right, the days of the week never change, like in a calendar. Therefore just the date changes.
Attached Thumbnails
Click image for larger version

Name:	screen.jpg
Views:	18
Size:	82.1 KB
ID:	16973  
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to make the output in multiple row become single row? ahpin Linux - Newbie 4 07-19-2013 07:49 AM
[SOLVED] LibreOffice Writer: Table Cells Borders Steve W Linux - Software 3 03-02-2013 09:04 AM
[SOLVED] find a null value in a row/column and delete entire row umix Linux - Newbie 10 10-13-2011 01:26 AM
transpose row to column? resolute155 Programming 3 09-07-2009 02:29 PM
need help spacing out cells in a latex table hedpe Programming 2 02-15-2007 03:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration