+ Reply to Thread
Results 1 to 8 of 8

Problematic If clause

Hybrid View

  1. #1
    Registered User
    Join Date
    06-03-2009
    Location
    Greece
    MS-Off Ver
    Excel 2007
    Posts
    24

    Problematic If clause

    Can somebody please explain to me why this formula does not work?

    =IF(O14+P14>0,(G12-O12)+(H12-P12)," ")
    With love,
    Gloria

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Problematic If clause

    How does it not work? What are you getting?
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Valued Forum Contributor
    Join Date
    02-04-2009
    Location
    Texas
    MS-Off Ver
    Excel 2016
    Posts
    667

    Re: Problematic If clause

    =if((o14+p14)>0,((g12-o12)+(h12-p12)),"")
    Probably too many parenthesis - but this is what I would try.

  4. #4
    Registered User
    Join Date
    06-03-2009
    Location
    Greece
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Problematic If clause

    I've been playing around with a different take on the debt snowball idea whereby we reduce our debt to a 300 balance thereby getting the minimum payment down to 10 euro, and the interest paid to around 3 euro. To do that we need to make payments that are in excess of the 300 euro.

    To keep track of the savings in the M column I want to enter the interest and minimum payment of the next months bill in columns N and O and have the formula =IF(N7+O7>0,(F5-N5)+(G5-O5)," ") kick in and give me the savings automatically. Then we can add that savings to the extra money we use to pay our debt with so as to make a slightly larger payment the following month.

    Problem is that the formula doesn't get the job done

    Thanks for the help.
    Attached Files Attached Files

  5. #5
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191

    Re: Problematic If clause

    Crimedog, her formula should work as it was.

    Gloria, my first guess is you're trying to add or subtract values entered as text that cannot be coerced into values, such as a date format Excel doesn't recognize. However, without a workbook or, at least, a good example of your layout and your results, it is impossible for us to determine your error.

  6. #6
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191

    Re: Problematic If clause

    Perhaps you meant =IF(N7+O7>0,(F7-N7)+(G7-O7),"")

  7. #7
    earthworm
    Guest

    Re: Problematic If clause

    Quote Originally Posted by gloria View Post
    Can somebody please explain to me why this formula does not work?

    =IF(O14+P14>0,(G12-O12)+(H12-P12)," ")
    give the excel example

  8. #8
    Registered User
    Join Date
    06-03-2009
    Location
    Greece
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Problematic If clause

    Thank you darkyam, don't know how I got so careless. You are absolutely right, that is exactly what I meant and the formula does exactly what I wanted it to do.

    Perhaps you meant =IF(N7+O7>0,(F7-N7)+(G7-O7),"")

    Thanks all. Sorry to have taken up your time with my confusion.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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