libreoffice-calc

Good usage of native functions in LibreOffice Basic?

ぃ、小莉子 提交于 2019-12-11 02:47:43
问题 I've read here that we can use a pretty complicated syntax in order to have access to LibreOffice functions in the Basic macro editor, rather than writing functions in a sheet and get the data back. Are there current best practices related to this problem, i.e. obtain a result without writing a formula to a sheet ? 来源: https://stackoverflow.com/questions/30195024/good-usage-of-native-functions-in-libreoffice-basic

LibreOffice Link to external data

北慕城南 提交于 2019-12-10 16:48:18
问题 I have a problem to import into LibreOffice an external csv . I press OK, and everything is formatted correctly After the "ok" button is disabled and I can not continue.. Any suggestion? 回答1: I had the same problem. Calc can't import CSV from external data source, only HTML, ODF, and a few others. If you need to import the file just once, download the CSV, then use the 'Insert Sheet' option. You don't mention what OS you're using. I needed to do the same thing as you and managed it on ubuntu

Python or LibreOffice Save xlsx file encrypted with password

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-09 01:48:57
问题 I am trying to save an Excel file encrypted with password. I have tried following the guide on https://help.libreoffice.org/Common/Protecting_Content_in - and works perfectly. However, this is in the GUI, but I am looking for a solution using the command line interface in headless mode. I have looked at the man libreoffice , but I could not find anything in there. Likewise I have looked at the documentation of the Python 3 library openpyxl , but I did not find anything useful there either. Is

Apache POI seeing columns in empty spreadsheet?

霸气de小男生 提交于 2019-12-08 07:08:54
问题 I have an empty spreadsheet, but when I'm accessing it with Apache POI (version 3.10), it says it has 1024 columns and 20 physical columns. I really deleted all the cells, only some formatting remains, but no content. And if I delete some columns with LibreOffice Calc (version 4.1.3.2), the number of columns only increases ! What's going on? Is there a reliable way to get the real number of columns (or cells in a row)? import java.net.URL; import org.apache.poi.ss.usermodel.*; public class

Excel / LibreOffice Calc Partial Match in Reverse

僤鯓⒐⒋嵵緔 提交于 2019-12-08 05:16:16
问题 I would like to use a lookup table to choose a tag for each row according to its description column. Descriptions contain keywords that map to tags. Therefore, I need to partially match against the keyword list as below: A B C D E 1 Description Tag Keyword Tag 2 lorem KEYA ipsum KEYA Tag A 3 dolor sit KEYC amet KEYB Tag B 4 KEYB consectetur KEYC Tag C 5 adipiscing elit KEYA KEYD Tag D 6 sed do KEYB eiusmod I would like to fill cells in column B with values from the lookup table in D2:E5. I

Remove rows where value is *not* in column on other sheet

百般思念 提交于 2019-12-07 15:29:13
问题 I have a LibreOffice Calc file with two sheets. Sheet 2 has just one column A with lots of numbers. In sheet 1, column A of every row also holds a number. I want to remove all rows from sheet 1 that have a value in column A which does not appear anywhere in column A of sheet 2. Filters don't seem to do the trick, as they don't have a "value must be contained in some column" operator. Any ideas? 回答1: Enter the following formula in cell B1 of Sheet1: =IF(ISNA(VLOOKUP(A1,Sheet2.A:A,1, 0)),"",A1)

Function accessing cell range

北慕城南 提交于 2019-12-07 07:05:11
问题 I don't find how to use cell ranges with functions. I vainly searched some examples. I wrote the following test. I get "Object variable not set" error on both "for" lines (one is without "RangeAddress", and the second is with it, because I'm not sure of the correct syntax): function CHECKBZRANGE(cellRange) as integer dim nCol as integer dim nLine as integer dim i as integer for nCol = cellRange.StartColumn to cellRange.EndColumn for nLine = cellRange.RangeAddress.StartRow to cellRange

Sum minimum of corresponding column values

允我心安 提交于 2019-12-07 05:55:18
问题 I have two columns with numbers. I would like to calculate in a separate cell a sum. The sum will include the minimums of corresponding cells in these two columns. Example: A | B -------- [1] 1 | 2 [2] 4 | 3 [3] 0 | 1 [4] 5 | 5 I need a formula that would calculate in a cell the sum of 1 + 3 + 0 + 5 where * 1 is the MIN(A1,B1), * 3 is the MIN(A2,B2) * 0 is the MIN(A3,B3) * 5 is the MIN(A4,B4) Is that possible in a single formula (independent of #rows)? Working with LibreOffice Calc at the

Function accessing cell range

筅森魡賤 提交于 2019-12-05 14:28:49
I don't find how to use cell ranges with functions. I vainly searched some examples. I wrote the following test. I get "Object variable not set" error on both "for" lines (one is without "RangeAddress", and the second is with it, because I'm not sure of the correct syntax): function CHECKBZRANGE(cellRange) as integer dim nCol as integer dim nLine as integer dim i as integer for nCol = cellRange.StartColumn to cellRange.EndColumn for nLine = cellRange.RangeAddress.StartRow to cellRange.RangeAddress.EndRow i = i + 1 ' placeholder for some computation next nLine next nCol checkBZ_range = i end

Does LibreOffice Calc support JSON file importing/sorting?

只愿长相守 提交于 2019-12-05 08:41:24
问题 I've been trying to import a couple of .json files into LibreOffice Calc. Although I can get the raw data in, it isn't sorting as I would think it might (by placing different pieces of info into each cell). Does LibreOffice provide support for importing JSON files and sorting them out in cells? (In other words, import + sort)? If there doesn't seem to be direct support for this, would converting to CSV be the next logical step in order to get the data into Calc? 回答1: Had the same problem