nested function to add columns

  • Thread starter Thread starter donl
  • Start date Start date
D

donl

hello! is there a function that can check 3 columns, and based on the 3
columns, perform a calculation. here is what i am trying to do:

colA colB colC
Y N Y
Y Y Y
N N N

if all 3 columns are Y, then I want to add them together
(ColA+ColB+ColC)

Thanks!
 
this is what i have so far:


=if(A1='Y',if(B1='Y',if(C1='Y',D1+E1+F1,0),0),0)


so if they are all Y's then i add cells e,f,g. but not working...
 
donl said:
hello! is there a function that can check 3 columns, and based on the
columns, perform a calculation. here is what i am trying to do:

colA colB colC
Y N Y
Y Y Y
N N N

if all 3 columns are Y, then I want to add them togethe
(ColA+ColB+ColC)

Thanks!

=IF(AND(A1=\"Y\",B1=\"Y\",C1=\"Y\"),SUM(D1:F1),\"\"

and copy down as required.

Hope this helps.

Regards
 
If this is from your equation you need to chage the hyphens to quote marks
around the Ys.
 

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

Back
Top