+ Reply to Thread
Results 1 to 6 of 6

IF Formula

  1. #1
    Registered User
    Join Date
    03-13-2007
    Posts
    71

    IF Formula

    Morning

    I am trying to write an IF formula that states:

    IF H15="Yes" then (F15-E15)/E15, If not, then " ".

    The formula I wrote was:

    =IF(H15="Yes","=(F15-E15)/E15"," ")

    However, Excel will not let me use the middle bit of this formula, without putting speach marks arround it. But, this is then recognised as text, so the result is only shown as: "=(F15-E15)/E15" not the result of the formula.

    Regards

    Howardjo

  2. #2
    Forum Contributor
    Join Date
    08-10-2006
    Posts
    723
    hi

    try

    =IF(H15="Yes",(F15-E15)/E15," ")
    steve

  3. #3
    Registered User
    Join Date
    03-13-2007
    Posts
    71
    Nope,

    Still doesn't calculate the formula.

    What I am ultimately trying to do is hide and error, when one occurs.

    The other thing I have tried to do is a conditional format that changes the colour of the text in the cell G15 to white, when cell H15="True".

    I have written =$H15="TRUE" into the conditional format, but this also doesn't work.

    Regards

  4. #4
    Forum Contributor
    Join Date
    08-10-2006
    Posts
    723
    hi,

    cannot understand why it does not work see attached file
    and conditonal g15

    let me know if it is not correct
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    03-13-2007
    Posts
    71

    sorted

    Thank you.

    I don't know why it wasn't working, but I have deleted it, and re-typed it, and it seems to be sorted now.

    Regards

    Howardjo

  6. #6
    Registered User
    Join Date
    03-13-2007
    Posts
    71

    sorted

    Thank you.

    I don't know why it wasn't working, but I have deleted it, and re-typed it, and it seems to be sorted now.

    Regards

    Howardjo

+ 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