+ Reply to Thread
Results 1 to 9 of 9

If error formula

  1. #1
    Registered User
    Join Date
    12-11-2013
    Location
    Toronto, Ontario, Canada
    MS-Off Ver
    Excel 2010
    Posts
    8

    If error formula

    I have a worksheet that tracks test results. In column E, the score of a test will be calculated and shown as a %. This is the formula in the cells in column E. The score is entered into column D. The total marks possible for each test are located in column C.

    =IF(OR(D31="",C31="")=TRUE,"",IF(OR(D31=0,C31=0)=TRUE,0,D31/C31))


    So if Column C = 25, Column D = 25, then the formula will automatically calculate 100% in Column E.
    If there is no score in Column D, then the cell in column E is blank.

    Once in a while the test isn't actually scored, we may give it out as homework and we just check for completion. So in Column D, I want to be able to type something in like "complete" or "incomplete" and have column E remain blank or show a dash "-".

    Is this possible? How would I modify the formula that I am currently using? Is there another option?

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,085

    Re: If error formula help!

    =IF(OR(D31="",C31=""),"",IF(OR(D31=0,C31=0),0,D31/C31))
    change to
    =IF(OR(D31="",C31="",D31="complete"),"",IF(OR(D31=0,C31=0),0,D31/C31))
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    12-11-2013
    Location
    Toronto, Ontario, Canada
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: If error formula help!

    Thank you so much! That definitely works. Now what if the text in D31=incomplete instead of complete? Can that also be added to the formula?

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,085

    Re: If error formula help!

    =IF(OR(D31="",C31="",D31="complete",D31="incomplete"),"",IF(OR(D31=0,C31=0),0,D31/C31))

  5. #5
    Registered User
    Join Date
    12-11-2013
    Location
    Toronto, Ontario, Canada
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: If error formula help!

    Thank you!!! I had tried that but I must've missed something because it didn't work the first time. Now it does work and that's all that matters.

    Michele

  6. #6
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,085

    Re: If error formula help!

    excellent

    if my assistance has helped, and only if you wish to , there is a reputation icon * on the left hand side - you can add to my reputation here
    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  7. #7
    Registered User
    Join Date
    12-11-2013
    Location
    Toronto, Ontario, Canada
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: If error formula help!

    I tried to find the reputation icon but couldn't locate it. What does it look like?
    I also tried to mark the thread as solved but under Thread Tools, I only get 2 options: Show printable version and Subscribe to this thread.

    What am I doing wrong?

  8. #8
    Registered User
    Join Date
    12-11-2013
    Location
    Toronto, Ontario, Canada
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: If error formula help!

    I found the answers...for some reason I keep having to refresh and log in again but even after doing so, I am not allowed to save my comments for reputation. I will try again.

  9. #9
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,085

    Re: If error formula

    Bottom of each post - left hand side

    * add reputation

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Inputbox error message. Formula you typed contains an error.
    By maacmaac in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-09-2013, 02:25 PM
  2. [SOLVED] Formula Error-Error Message
    By Paige in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-25-2006, 04:15 PM
  3. Replies: 4
    Last Post: 03-24-2006, 07:20 AM
  4. [SOLVED] Error values:DIV/0! error in SumProduct formula with no division
    By Jerry W. Lewis in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 07:05 PM
  5. [SOLVED] Formula error with Mac resulting in '#NAME' error
    By Linking to specific cells in pivot table in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-01-2005, 03:05 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1