[Solved] Why doesn't this formula work?

Discuss the spreadsheet application
Post Reply
sigsky
Posts: 23
Joined: Fri Sep 18, 2015 4:38 pm

[Solved] Why doesn't this formula work?

Post by sigsky »

It sure looks as though it should. Correct answer should be .308.

I saw a post complaining about only attaching images so I have also attached the file.
err 504 indicates a parameter is invalid, i.e. not numeric, but I don't see it.
Attachments
2018BaseballStats.ods
worksheet
(13.12 KiB) Downloaded 63 times
formula
formula
Last edited by sigsky on Tue Feb 20, 2018 2:02 am, edited 3 times in total.
Windows 10
Open Office 4.1.11

Don't want to buy Excel
User avatar
Lupp
Volunteer
Posts: 3553
Joined: Sat May 31, 2014 7:05 pm
Location: München, Germany

Re: Why doesn't this formula work?

Post by Lupp »

Code: Select all

{AB85} =IF(AB80>0;ROUND(AB80/(AA80-AE80-AK80-AO80-AN80-AM80));3;"")
You cannot have two alternatives in an IF() call. The value 3 should be assumed to be the number of decimal places for ROUND() to work with. It must be on the appropriate parameter place therefor.

Code: Select all

=IF(AB80>0;ROUND(AB80/(AA80-AE80-AK80-AO80-AN80-AM80);3);"")
On Windows 10: LibreOffice 24.2 (new numbering) and older versions, PortableOpenOffice 4.1.7 and older, StarOffice 5.2
---
Lupp from München
sigsky
Posts: 23
Joined: Fri Sep 18, 2015 4:38 pm

Re: [SOLVED] Why doesn't this formula work?

Post by sigsky »

Thanks, I should have been able to figure that out, but I played with it an hour this morning.
Windows 10
Open Office 4.1.11

Don't want to buy Excel
Post Reply