openoffice-calc

Change #N/A to Blank cell

情到浓时终转凉″ 提交于 2020-01-02 04:23:28
问题 How can I change the #N/A to the blank cell if nothing in that cell? Eg. =VLOOKUP(B19:B36;$TABLE.A1:C46;2;0) I think I might need something like an ISERROR check but I don't 100% know what I'm doing. 回答1: If we're talking about Excel 2010 and later you can use IFERROR : =IFERROR(VLOOKUP(B19:B36;$TABLE.A1:C46;2;0);"") You can also put text into the final string result 回答2: The question was misleading about the spreadsheet software as 2 different spreadsheets were originally stated in tags.

Cell content inside formula

元气小坏坏 提交于 2020-01-02 02:33:28
问题 Is it possible to place the content of a cell inside a formula. By formula I mean the math formula editor (insert->object->formula). 回答1: To the best of my knowledge, there is no way to reference a cell from a formula. Math formula editor has no knowledge about OO Calc. However, you can create a new formula whenever needed using macros. Follow thesse steps to make it work: Put the math formula you want to insert to a cell. For example, put some numbers to cells A1, A2, A3 and put the

How do you copy an array formula down a column in Calc?

≯℡__Kan透↙ 提交于 2019-12-25 03:22:51
问题 I have the following array formula in cell B2 : =INDEX($M$2:$O$110;MATCH(1;($M$2:$M$110=C2)*($N$2:$N$110=E2);0);3) and I want to copy it down a column, so I want: B2 {=INDEX($M$2:$O$110;MATCH(1;($M$2:$M$110=C2)*($N$2:$N$110=E2);0);3)} B3 {=INDEX($M$2:$O$110;MATCH(1;($M$2:$M$110=C3)*($N$2:$N$110=E3);0);3)} B4 {=INDEX($M$2:$O$110;MATCH(1;($M$2:$M$110=C4)*($N$2:$N$110=E4);0);3)} etc I enter the formula into B2 , I press CTRL+SHIFT+ENTER , then I copy the formula down the B column. This only

COUNTIF with multiple criteria

╄→尐↘猪︶ㄣ 提交于 2019-12-23 12:28:46
问题 Can you please advise on how can I use COUNTIF with multiple conditions? My proposal (left) shows the formula for one criterion (distinct regions). However, I am interested in counting distinct regions for each distinct month (two criteria) - on the right: desired result. 回答1: you can use COUNTIFS instead =1/COUNTIFS($A:$A,A2,$B:$B,B2) 来源: https://stackoverflow.com/questions/17215915/countif-with-multiple-criteria

OpenOffice Calc can not read a simple CSV file. Why?

ぐ巨炮叔叔 提交于 2019-12-20 04:53:20
问题 I have a Web site (PHP) that generates a CSV file (text/csv) with the following content: ID;E-Mail_User;Name;Applikation;Rolle;Auftragsdatum;Administrator 522;user@domain;WXDUILAS;ABCD;XYZ;2009-03-04 05:00:09;user@domain When I select OpenOffice to show the CSV file only an empty spread sheet is shown. No error is displayed. When I try to open the file with oocalc test.csv the same happens. I have tried different versions of OpenOffice. What is wrong with the file? How can I get an error

OpenOffice Calc can not read a simple CSV file. Why?

老子叫甜甜 提交于 2019-12-20 04:53:11
问题 I have a Web site (PHP) that generates a CSV file (text/csv) with the following content: ID;E-Mail_User;Name;Applikation;Rolle;Auftragsdatum;Administrator 522;user@domain;WXDUILAS;ABCD;XYZ;2009-03-04 05:00:09;user@domain When I select OpenOffice to show the CSV file only an empty spread sheet is shown. No error is displayed. When I try to open the file with oocalc test.csv the same happens. I have tried different versions of OpenOffice. What is wrong with the file? How can I get an error

How can I call a Python macro in a cell formula in OpenOffice.Org Calc?

为君一笑 提交于 2019-12-18 12:34:19
问题 To extend OpenOffice's capabilities, I've defined some Python macros in a file in the user script directory (~/Library/Application Support/OpenOffice.org/3/user/Scripts/python/, in my case). The macros are visible in the Python macro organizer. However, using the functions in a cell formula results in "#NAME?" (OO.org error 525). Suppose I've defined the following function : def pytype(val): return str(type(val)) How can I call pytype in a cell formula (e.g. =PYTYPE("string") )? Background I

Python, OpenOffice: Programmatically Manipulating spreadsheets

左心房为你撑大大i 提交于 2019-12-17 19:38:48
问题 I have an spreadsheet-based automated report that needs to be created daily, with some charts, aggregating functions (e.g. SUM and AVERAGE) and formatted cells (Dates, percentage, etc.). I have tried to write these results directly to an Excel file, but Python's xlwt and xlrd don'y support charts and functions. Moreover, trying to open an existing, formatted Excel file and changing some cell's values ended up erasing all charts and functions in the existing file. Is there a way to write

OpenOffice Calc macro to add pie chart

情到浓时终转凉″ 提交于 2019-12-13 01:29:48
问题 I am trying to insert a piechart in open-office using macro. But the code shows error: Line: Dim oDiagram As New com.sun.star.chart.PieDiagram Error: "Object not accessible. Invalid reference." I am unable to figure out why. Kindly help. Here is my complete macro code: Sub Macro1 Dim oRange as Object Dim oRangeAddress(1) As New com.sun.star.table.CellRangeAddress Dim oDiagram As New com.sun.star.chart.PieDiagram Dim oRect As New com.sun.star.awt.Rectangle Dim cTitle as String oRange =

How to extract data from one cell to another

假如想象 提交于 2019-12-12 20:39:01
问题 Given a spreadsheet cell containing a string that consists of a hyphenated series of character segments, I need to extract the fourth segment. For example, consider column A containing data strings like XX-XXX-X- G10 -XX-XXX, where X denotes any character. What formula would I need to place in column B to get G10 as a result? A B 1 XX-XXX-X-G10-XX-XXX G10 I'm looking for a formula that could work in in Libre Office Calc, Open Office Calc, MS Excel, or Google Sheets. 回答1: It was very simple...