+ Reply to Thread
Results 1 to 18 of 18

IF Formula gives the wrong result

  1. #1
    Forum Contributor
    Join Date
    05-17-2012
    Location
    Lisbon
    MS-Off Ver
    Excel 2016 for MAC
    Posts
    117

    IF Formula gives the wrong result

    Dear all,

    I have a problem with a formula in a few cells with the following formula in the cell h60 on the sheet: Income Statement =IF(($H$3<=$F$52);($G$60-(G60/$F$48));0) but isn't working. Any help solving this pls??

    Kind Regards
    Fausto
    Last edited by Faustocruz; 02-03-2015 at 05:25 AM. Reason: to add an attachment
    Fausto Cruz

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: IF Formula gives the wrong result

    There are extra brackets but it is not disturb your formula
    it has to be work
    can you attach sample file with expected result
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: IF Formula gives the wrong result

    change this … =IF(($H$3<=$F$52);($G$60-(G60/$F$48));0) to this… =IF($H$3<=$F$52;$G$60-(G60/$F$48);0) should work for you.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: IF Formula gives the wrong result

    Quote Originally Posted by Sambo kid View Post
    change this … =IF(($H$3<=$F$52);($G$60-(G60/$F$48));0) to this… =IF($H$3<=$F$52;$G$60-(G60/$F$48);0) should work for you.
    @ Sambo Kid booth the formulas are giving same result
    i didn't find any difference in the results

  5. #5
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: IF Formula gives the wrong result

    @ Sambo Kid booth the formulas are giving same result
    i didn't find any difference in the results
    That's what I get for not testing it, just looking at it.

  6. #6
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: IF Formula gives the wrong result

    Ok, now that I read the formula and what it is supposed to do, I don't see what is "not working"? This time I tested mine and yours. So I reread nflsales comment again and He also says it should work.

  7. #7
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: IF Formula gives the wrong result

    Multiplication shouldn't need brackets

    This should simply be

    =IF($H$3<=$F$52;$G$60-G60/$F$48;0)

    though this will produce the same answer.
    How is it "not working"?

    H3 = F52 (Year 1) so the result will be

    900,000 - 900,000 / 25 = 900,000 - 36,000 = 864,000
    which is what the spreadsheet says
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  8. #8
    Forum Contributor
    Join Date
    05-17-2012
    Location
    Lisbon
    MS-Off Ver
    Excel 2016 for MAC
    Posts
    117

    Re: IF Formula gives the wrong result

    Dear All,

    I thank you for your support but the formulas didn't worked.

    Can we something else?/

    Kind Regards

    Fausto

  9. #9
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: IF Formula gives the wrong result

    Where it is not working

  10. #10
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: IF Formula gives the wrong result

    Can you describe "didn't worked" ?
    In what way is it not working for you?
    Are you getting the wrong result? What result DO you get, what result did you expect, and why?

    It certainly is working for me..it returns 864000

    =IF($H$3<=$F$52;$G$60-G60/$F$48;0)

    H3 = 1
    F52 = 1
    So $H$3<=$F$52 is in fact TRUE.

    So the formula calculates
    $G$60-G60/$F$48

    G60 = 900000
    F48 = 25
    900000-900000/25

    900000/25 = 36000

    900000-36000 = 864000
    Last edited by Jonmo1; 02-04-2015 at 09:19 AM.

  11. #11
    Forum Contributor
    Join Date
    05-17-2012
    Location
    Lisbon
    MS-Off Ver
    Excel 2016 for MAC
    Posts
    117

    Re: IF Formula gives the wrong result

    What I'm trying to do is: if the cell X is < or = to the cell z, something has to happen but the result it comes always wrong???

    Rgs

  12. #12
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: IF Formula gives the wrong result

    OK, you keep saying it's wrong, or didn't work.
    That doesn't really help us figure out WHY it's wrong, and therefor impossible to 'Fix'..

    Take the formula in H60 that you originally posted.
    How is it wrong?
    It currently returns the value 864000
    What result are you expecting to see in H60 instead of 864000 ? And Why ?

    864000 appears to be the correct answer for the formula you posted based on my last post..

  13. #13
    Forum Contributor
    Join Date
    05-17-2012
    Location
    Lisbon
    MS-Off Ver
    Excel 2016 for MAC
    Posts
    117

    Re: IF Formula gives the wrong result

    The point is, the formula is not working as I want to say that if the year 1 at H3 is equal to 1 at F52 than he has to perform the formula and the same to the other cells...

  14. #14
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: IF Formula gives the wrong result

    What actual number should the formula return and please explain exactly how you calculate that?
    Remember what the dormouse said
    Feed your head

  15. #15
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: IF Formula gives the wrong result

    Quote Originally Posted by Faustocruz View Post
    say that if the year 1 at H3 is equal to 1 at F52 than he has to perform the formula
    It DOES....
    It's returning 864000. Which is the correct result of the calculuation $G$60-G60/$F$48

  16. #16
    Forum Contributor
    Join Date
    05-17-2012
    Location
    Lisbon
    MS-Off Ver
    Excel 2016 for MAC
    Posts
    117

    Re: IF Formula gives the wrong result

    yes but if I insert the number 2 on F52 comparing with H3, the result must be 0

  17. #17
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: IF Formula gives the wrong result

    The test in the IF is
    $H$3<=$F$52

    If H3 is 1, and you put a 2 in F52, then it becomes
    1<=2 = TRUE, so it still does the calculation.

    Why would it return 0 ?


    < means LESS THAN

    So $H$3<=$F$52 is saying Is H3 LESS than or Equal to F52


    Perhaps the formula should be
    =IF(($H$3>=$F$52),($G$60-(G60/$F$49)),0)
    Last edited by Jonmo1; 02-04-2015 at 10:17 AM.

  18. #18
    Forum Contributor
    Join Date
    05-17-2012
    Location
    Lisbon
    MS-Off Ver
    Excel 2016 for MAC
    Posts
    117

    Re: IF Formula gives the wrong result

    will try...

+ 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. Formula gives out wrong result, Help Please
    By jyuens13 in forum Excel General
    Replies: 5
    Last Post: 10-28-2014, 07:55 PM
  2. [SOLVED] Code result wrong but formula correct result
    By marreco in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-11-2014, 12:26 PM
  3. Wrong result with IF formula
    By rizmomin in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-25-2012, 03:57 PM
  4. formula giving wrong result sometimes?
    By lnjr in forum Excel General
    Replies: 2
    Last Post: 08-13-2010, 09:20 AM
  5. FORMULA PRODUCES WRONG RESULT
    By Wildebeest222 in forum Excel General
    Replies: 2
    Last Post: 10-11-2005, 05: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