I’m trying to migrate a rather complicated utility tracking spreadsheet from Excel to Calc. Most of it seems to work OK as-is but one set of statements fail and errors propagate from there through the spreadsheet. The following statement is intended to extract the total of KWH used in my car each month from a pivot table containing totals by month for several years. It works in Excel but in Calc it produces a blank cell or a #ref error if the IFERROR function is removed.
=IFERROR(GETPIVOTDATA("KWH",$'Prius Fuel'.$R$3,"Date",MONTH(A12),"Years",YEAR(A12)),"")
If the conditions are removed the statement extracts the KWH total from the table. Adding conditions, however, cause the statement to fail no matter how I’ve tried altering the punctuation or using fixed conditions instead of MONTH and YEAR.
Attached are screenshots showing the pivot table and the GETPIVOTDATA results as they appear in both Calc and Excel. It probably doesn’t matter and I don’t care which way it looks but the table shows as two columns in Excel and three in Calc. The #VALUE errors that show up in columns G & H are because of the missing pivot table data.
Rick
Pivot table in Excel.jpg
Pivot table in Calc.jpg
GETPIVOTDATA in Excel.jpg
GETPIVOTDATA in Calc.jpg