Coming from Count hours per period from a large list I have now several solutions working fine in Libreoffice but not compatible with Microsoft Office.
This thread should be about compatibility and if there are more portable functions for both.
Hours-Testproject_02.2.ods (64.9 KB)
1 tab per yearly period, counting time durations of actions, each tab referencing the previous tab residue, some conditional formatting for alternating row colors and bad values.
Working perfectly so far in Libreoffice Version: 24.2.4.2 (X86_64)
Saving as Excel 2007-365(.xlsx).
What is not working in MS Office:
A1: Text field referencing the file name
Working alternative for Excel:
=LINKS(TEIL(ZELLE("Dateiname"; A1); FINDEN("["; ZELLE("Dateiname"; A1))+1; FINDEN("]"; ZELLE("Dateiname"; A1))-FINDEN("["; ZELLE("Dateiname"; A1))-1);
FINDEN("."; TEIL(ZELLE("Dateiname"; A1); FINDEN("["; ZELLE("Dateiname"; A1))+1; FINDEN("]"; ZELLE("Dateiname"; A1))-FINDEN("["; ZELLE("Dateiname"; A1))-1))-1)
Back in LO:
=LEFT(MID(CELL("Dateiname"; A1); FIND("["; CELL("Dateiname"; A1))+1; FIND("]"; CELL("Dateiname"; A1))-FIND("["; CELL("Dateiname"; A1))-1);
FIND("."; MID(CELL("Dateiname"; A1); FIND("["; CELL("Dateiname"; A1))+1; FIND("]"; CELL("Dateiname"; A1))-FIND("["; CELL("Dateiname"; A1))-1))-1)
…not working. Is there any compatible alternative?
A3: Text field referencing the tab name
Working alternative for Excel:
=RECHTS(ZELLE("Dateiname"; A1); LÄNGE(ZELLE("Dateiname"; A1)) - FINDEN("]"; ZELLE("Dateiname"; A1)))
Back in Libreoffice:
=RIGHT(CELL("Dateiname"; A1); LEN(CELL("Dateiname"; A1)) - FIND("]"; CELL("Dateiname"; A1)))
…not working. Is there any compatible alternative?
C3: Referencing the previous tab residue.
In .ods: =INDIRECT(TEXT(A3 - 1; "0") & ".$E$4")
Working
In .xlsx: =INDIREKT(TEXT(A3 - 1; "0") & ".$E$4")
Not working
Working solution for Excel:
=INDIREKT(TEXT(A3 - 1; "0") & "!$E$4")
Back in LO, this is also working. So this might be worth a bug report to improve format migration in LO?
E24-25: Negative time values
=E23-(C24-D23+D24)
In LO I formatted these in red via conditional formatting.
In Excel the negative values are shown as #######.
As alternative in Excel I tried:
=WENN(E24-(C25-D24+D25)<0; "-" & TEXT(ABS(E24-(C25-D24+D25)); "h:mm"); TEXT(E24-(C25-D24+D25); "h:mm"))
Back in Libreoffice:
=IF(E23-(C24-D23+D24)<0; "-" & TEXT(ABS(E23-(C24-D23+D24)); "h:mm"); TEXT(E23-(C24-D23+D24); "h:mm"))
Interesting, back in LO this is working, but in Excel only the first calculation works, all following rows can’t calulcate with the text format.
Formatting and text color
In LO there is a grey-font format style for calculated values in columns Residue and Balance, named “Calculated”. In Excel the fonts are still grey. Back in LO opening the .xlsx the black fonts in Duration column are blue and the grey fonts are green now?
[erAck: edited to format code as code, see This is the guide - How to use the Ask site? - #6 by erAck ; also, it would had helped others if you consistently used English function names instead of a mix with German.]