+ Reply to Thread
Results 1 to 4 of 4

Trouble with an IF formula

  1. #1
    Registered User
    Join Date
    06-05-2015
    Location
    London
    MS-Off Ver
    2007
    Posts
    2

    Trouble with an IF formula

    Hello,

    I am trying to create a formula that performs different calculations on C10 depending on the answers of Y or N in cells C15 and C16.

    It works to a point, but the second nested function, isn't working.
    What am I doing wrong?

    Thanks!

    =IF(AND(C15="Y",C16="Y"),"NOT POSSIBLE",IF(AND(C15="Y",C16="N",),C10*C24,IF(AND(C16="Y",C15="N"),C10*C25,C10)))

  2. #2
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Trouble with an IF formula

    have you tried using the Evaluate Formula technique?

    If you haven't. here is how

    click on the cell
    click on the Formula Ribbon
    in the Formula Auditing section there is an Evaluate Formula button
    Click it
    notice an Underline and click evaluate.

    this will "evaluate" each underline just like XL would during execution. this will allow you to see if the variable are doing what you think/want...

    HTH
    Ernest

    Please consider adding a * if I helped

    Nothing drives me crazy - I'm always close enough to walk....

  3. #3
    Registered User
    Join Date
    06-05-2015
    Location
    London
    MS-Off Ver
    2007
    Posts
    2

    Re: Trouble with an IF formula

    Thank you! I used that and it helped me notice the extra comma within the parentheses that was causing the issue. I didn't know about that tool, thank you very much.

  4. #4
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Trouble with an IF formula

    no problem glad I could and thanks for the Rep point....please remember to set the thread to Solved...

+ 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] Having trouble with an IF Formula
    By katieshields in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-25-2013, 06:17 AM
  2. Formula trouble in VBA
    By Snurry in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-09-2009, 04:36 AM
  3. 'IF' formula trouble
    By agw3 in forum Excel General
    Replies: 2
    Last Post: 08-09-2006, 11:19 AM
  4. Trouble with formula
    By Kristajea in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-19-2005, 06:06 PM
  5. Trouble with Formula
    By GregR in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-09-2005, 12:06 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