+ Reply to Thread
Results 1 to 6 of 6

Conditional Formula help

  1. #1
    Registered User
    Join Date
    09-02-2012
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    2

    Conditional Formula help

    I hope someone here can help with this. I am trying to create formula which will perform one of two different calculations depending on the value of a yes/no cell.

    I want to create a formula that, if the condition is met (namely that the referenced cell has a "yes") then the following formula will be performed: the quotient of two absolute cells is subtracted from D3 and then the result is multipled by .235, otherwise if the condition is not met then the result is instead multiplied by 0.25.

    What I have now that doesn't seem to work:
    =IF(E56="Yes",(D56-$B$3/$A$56)*0.235,(D56-$B$3/$A$56)*.25)



    Further information is that all referenced cells contain a function and A56 contains the Count function.

  2. #2
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Conditional Formula help

    How about a dummy file.
    to attach a file click Edit on your post--go advanced -attachment
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: Conditional Formula help

    Where is D3 in that formula?

    Regards, TMS

    ---------- Post added at 03:46 AM ---------- Previous post was at 03:41 AM ----------

    Should it be:

    =IF(E56="Yes",(D3-$B$3/$A$56)*0.235,(D3-$B$3/$A$56)*.25) ?

    You could write:

    =(D3-$B$3/$A$56)*IF(E56="Yes",0.235,0.25)


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Registered User
    Join Date
    09-02-2012
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Conditional Formula help

    @ TMShucks
    You are awesome! This worked. For the life of me though, I just can't see why mine didn't. Nonetheless, that will just have to haunt me. Thanks so much.
    Last edited by Cutter; 09-05-2012 at 07:16 AM. Reason: Removed whole post quote

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: Conditional Formula help

    You're welcome.


    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

  6. #6
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Conditional Formula help

    @ smoothesq

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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