+ Reply to Thread
Results 1 to 2 of 2

equaton with #'s Y and N

  1. #1
    Corey
    Guest

    equaton with #'s Y and N

    I am adding the sum of c3:c24. Cell C3,C10,C11,C13,C14,C17-
    C21 will contain the text "Y" or "N" and will have a +5
    or -5 value. How do I create a formula to that will run
    this equation? Also, I want to be able to set a variable +
    and - on different cells. Ex.(C3 if "Y"+3,C3 if "Y"-5)

    =IF(C3="Y",SUM(C4:C24)+5,IF(C3="N",SUM(C4:C24)-5)) is
    working but only is looking at C3 how do I continue the
    equation?

  2. #2
    Jason Morin
    Guest

    Re: equaton with #'s Y and N

    One way:

    =SUM(C3:C24,COUNTIF(C3:C24,{"Y","N"})*{5,-5})

    HTH
    Jason
    Atlanta, GA

    >-----Original Message-----
    >I am adding the sum of c3:c24. Cell

    C3,C10,C11,C13,C14,C17-
    >C21 will contain the text "Y" or "N" and will have a +5
    >or -5 value. How do I create a formula to that will run
    >this equation? Also, I want to be able to set a variable

    +
    >and - on different cells. Ex.(C3 if "Y"+3,C3 if "Y"-5)
    >
    >=IF(C3="Y",SUM(C4:C24)+5,IF(C3="N",SUM(C4:C24)-5)) is
    >working but only is looking at C3 how do I continue the
    >equation?
    >.
    >


+ 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