equaton with #'s Y and N

  • Thread starter Thread starter Corey
  • Start date Start date
C

Corey

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?
 
One way:

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

HTH
Jason
Atlanta, GA
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

PLEASE HELP TO MATCH ALL SHEET AND THEN MERGE, 1
only1 13
Concatenate problem 7
IF function 5
Help with formula 10
Formula required 5
#VALUE error add'g formulas 1
Values for Y and N in multiple cells 1

Back
Top