+ Reply to Thread
Results 1 to 7 of 7

IF function not working?

  1. #1
    Registered User
    Join Date
    07-21-2006
    Location
    Hull, England
    MS-Off Ver
    2007
    Posts
    99

    IF function not working?

    Hi all,
    I have the following formula and it doesnt seem to work...
    =IF(P59>0,SUM(P64-N59)*(0.29),"-")
    Can anyone help?
    Thanks
    loopiloo

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

    Re: IF function not working?

    Works for me, in what way does it not work for you?
    Do you get an error? What error?
    Do you get the wrong result? What result DO you get? What result were you expecting?
    What are the values in each of the 3 cells involved?

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: IF function not working?

    What result do you get?

    You don't need the SUM function:

    =IF(P59>0,(P64-N59)*0.29,"-")
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    07-21-2006
    Location
    Hull, England
    MS-Off Ver
    2007
    Posts
    99

    Re: IF function not working?

    It would return a false when it should have returned a true
    The problem seems to be that P59 is the cell where the formula is so it seems that some cross referencing is going on...
    Ive changed the formula to =IF(P64>N59,SUM(P64-N59)*(0.29),"-") and it seems to be ok...
    Last edited by loopiloo; 06-10-2016 at 04:04 AM.

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: IF function not working?

    Quote Originally Posted by loopiloo View Post
    ive changed the formula to =if(p64>n59,sum(p64-n59)*(0.29),"-") and it seems to be ok...
    =if(p64>n59,(p64-n59)*0.29,"-")

  6. #6
    Registered User
    Join Date
    07-21-2006
    Location
    Hull, England
    MS-Off Ver
    2007
    Posts
    99

    Re: IF function not working?

    Forgot about the SUM. Thanks for your help...

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: IF function not working?

    You're welcome. Thanks for the feedback!

+ 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. Replies: 1
    Last Post: 06-02-2015, 01:38 AM
  2. IF statement not working with text function and edate function.
    By joshnathan in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-04-2013, 10:26 AM
  3. Excel Match Function not working with Right function.
    By swap579579 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-16-2013, 09:00 PM
  4. [SOLVED] Using the Split function with another function incorporated is not working correctly
    By highlystrung in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-06-2013, 03:51 PM
  5. MATCH function within INDIRECT function not working
    By mgerada in forum Excel General
    Replies: 2
    Last Post: 09-04-2011, 08:37 AM
  6. Replies: 4
    Last Post: 12-21-2010, 04:34 PM
  7. Working with Arrays, pasing from function to function
    By mikebres in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-27-2006, 01:40 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