[Solved] Need help please -error:508/#NAME

Discuss the spreadsheet application
Post Reply
hjnidgett
Posts: 2
Joined: Fri Sep 14, 2018 5:41 pm

[Solved] Need help please -error:508/#NAME

Post by hjnidgett »

I have a grade book that shows final grades as a column of percentages. I am trying to use an IF statement to display whether the student passes or fails. The fail if the logic test is below .7 and pass otherwise. Using the following formula:

=IF(P5<.7; then_fail; otherwise_pass)

I keep getting a Err:508 or an #NAME error.

What am I doing wrong and how do I correct it?

Thank you in advance.
Last edited by RoryOF on Fri Sep 14, 2018 7:17 pm, edited 3 times in total.
Reason: Added green tick [RoryOF, Moderator]
OpenOffice 4.1.5
MS Windows 10
FJCC
Moderator
Posts: 9277
Joined: Sat Nov 08, 2008 8:08 pm
Location: Colorado, USA

Re: Need help please

Post by FJCC »

Text has to be enclosed in double quotes like this

Code: Select all

=IF(P5<.7; "then_fail"; "otherwise_pass")
or

Code: Select all

=IF(P5<.7; "fail"; "pass")
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
hjnidgett
Posts: 2
Joined: Fri Sep 14, 2018 5:41 pm

Re: Need help please

Post by hjnidgett »

Thank you so much, I tried the second one and it worked.
OpenOffice 4.1.5
MS Windows 10
Post Reply