Re: [libreoffice-users] selecting cells in calc sheet

2015-04-26 Thread jelly
Correction. I ran across an old message from Mr Barker that suggested using the 
OFFSET() function for something.

-- 
Jim

-Original Message-
From: James E Lang jim+...@lang.hm
To: pete nikolic pg.nikol...@gmail.com, LibreOffice Users 
users@global.libreoffice.org
Sent: Sat, 25 Apr 2015 15:03
Subject: Re: [libreoffice-users] selecting cells in calc sheet

You're in business. The AVERAGE() function does the same thing as the SUM() 
function divided by the COUNT() function. I would use AVERAGE() as it is 
cleaner (more streamlined).

I'm glad I could help. I use the OFFSET() function myself to dynamically define 
ranges of cells. If somebody knows a better technique I hope they will chime 
in. I've never seen anyone else post a practical use for this function but for 
me, any spreadsheet program that lacks support for it fails to gain my 
acceptance.

-- 
Jim

-Original Message-
From: pete nikolic pg.nikol...@gmail.com
To: James E Lang jim+...@lang.hm
Sent: Sat, 25 Apr 2015 12:17
Subject: Re: [libreoffice-users] selecting cells in calc sheet

On Sat, 25 Apr 2015 11:46:23 -0700
James E Lang jim+...@lang.hm wrote:

 The main thing I'm not understanding is whether the formula is to be one fixed
 place or if after 3 data points it is in cell X but after 4 data points it is 
 in
 cell Y. The solution I gave you applies to the latter case.
 
 For the former case I would use a more complex formula like this using your 
 latest
 specification.
 
 =IF(COUNT(A1:A50)2,AVERAGE(OFFSET(A1,0,COUNT(A1:A50)-3,1,3)-30,)
 
 That says, if there are more than two values then define a horizontal range
 composed of the last three filled cells, average that range, and subtract 30. 
 This
 works as long as they are no empty or text cells before the values of 
 interest in
 A1:A50. This process gets a little bit (to say the least) more hairy if there 
 are
 intervening cells.
 
 

Hi Jim ..


Right this is looking promissing   the actual location of the formula /result 
will
be in a separate cell on the same row but outside the range of entered values it
will also be copied to the next 30 or so rows below and edited to suit where
needed   . one other thing you have it averaging the cells they need to be added
together then divided by 3 unless the average function does the same thing 



Thanks  

Pete .
  

-- 
Illegitimi non carborundum . ro for the purists out there
Noli nothis permittere te terere. 

-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted

-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted


Re: [libreoffice-users] Calc macro - selection by keyboard not recorded

2014-07-17 Thread jelly
david_lynch david_ly...@blueyonder.co.uk posted to 
users@global.libreoffice.org at 0:23 on Sun, 13 Jul 2014 about Calc macro - 
selection by keyboard not recorded:

 On 13/07/2014 01:46, Andrew Douglas Pitonyak wrote:

 On 07/12/2014 04:41 PM, david_lynch wrote:
 Although reasonably experienced using calc, I haven't used macros much.

 snip
 What am I doing wrong please?

 David Lynch

 4.2.4.2 on Windows 8


 You are doing nothing wrong The macro recorder fails to record 
 certain actions and should be reworked from the start, but, that is 
 not likely to happen (sadly). If you want to set the first character 
 to bold regardless of what you have selected, you could run something 
 like this (your welcome):

 snip

What did Andrew suggest? As far as I can tell, the snipped suggestion never 
made it to this list.

[RANT]

This is a perfect example of why it is stupid to not post ordinary replies to 
this list!

[/RANT]

 Many thanks Andrew. I had simplified what I wanted: your code will, I 
think, enable me to complete the task.

 David Lynch

-- 
Jim


-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted