Created attachment 42064 [details] Archive containing S.ods and K.ods Attached 2 simple ods files. S.ods has 2 formulas referencing K.ods. The Countif formula gives Error 504. The Sum formula works ok. I created the files in OpenOffice.org 3.2.1, and there both formulas work. (And I have been using Countif formulas like this for a long time.) If that is important, I actually created the files using Norwegian app language, using Antall.hvis, the Norwegian equivalent of Countif. Using LibO_3.3.0rc3_MacOS_x86_install_en-US, but I also saw it with LibO_3.3.0rc2_MacOS_x86_install_en-US. I guess this bug is similar to bug 33002.
This is my area.
I checked this again on LibO_3.4.0beta2_MacOS_x86_install_en-US.dmg, and the Countif still fails in my sample files. Not surprisingly, since the bug is not marked as fixed.
http://cgit.freedesktop.org/libreoffice/calc/commit/?h=libreoffice-3-4&id=71a67be19f95758035a8214126f5f008f1647c05 Just fixed this in the 3.4 branch.
I tried the sample files again in LibO_3.4.0beta5_MacOS_x86_install_en-US, and the CountIf worked like a charm. I also opened my original "summary from the account details" worksheet, and after a while it had processed all the CountIfs and SumIfs correctly. (The release 3.3 version was very fast in opening the file, but that was probably because the formulas failed, and failed quickly.)