+ Reply to Thread
Results 1 to 4 of 4

IF Function Returns Wrong Answer

  1. #1
    Forum Contributor
    Join Date
    12-16-2014
    Location
    Riverside, IA
    MS-Off Ver
    2010
    Posts
    156

    IF Function Returns Wrong Answer

    Hello,

    This formula only returns the right answer when SUM(I5:I72)=100% and I get a #NAME? error for any other result. Column I contains blank cells.

    =IF(SUM(I5:I72)=100%,"Correct!",IF(SUM(I5:I72)=O%,"Correct!","Error!"))

    Thanks!

    Patrick

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,958

    Re: IF Function Returns Wrong Answer

    You have O% rather than 0%. Letter O rather than number zero.

    BSB

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,266

    Re: IF Function Returns Wrong Answer

    Try this instead:

    =IF(SUM(I5:I72)=100%,"Correct!",IF(SUM(I5:I72)=0%,"Correct!","Error!"))

    Can you see the difference?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  4. #4
    Forum Contributor
    Join Date
    12-16-2014
    Location
    Riverside, IA
    MS-Off Ver
    2010
    Posts
    156

    Re: IF Function Returns Wrong Answer

    Gheez, I sure missed that....using the letter o instead of the number 0!

    Thanks much!

+ 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] FREQUENCY function returns wrong results
    By imatzav in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 07-30-2017, 05:47 AM
  2. IF Function Returns Wrong Answer
    By EverClever in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 07-28-2017, 02:05 PM
  3. VBA Vlookup function returns wrong values
    By alicelia in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-29-2015, 12:09 AM
  4. [SOLVED] MAX(date1;date2) returns wrong answer
    By cristinik in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-07-2013, 07:33 AM
  5. [SOLVED] Row() function returns wrong row and more..
    By Kim in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-10-2006, 09:14 PM
  6. My Datedif function only returns 0's in the cell what's wrong?
    By Tom in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-13-2006, 02:45 PM
  7. month worksheet function returns wrong value
    By Barry in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-27-2006, 08:37 PM

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