G
Guest
I am trying to build up a YTD value in a cell on a
worksheet named YTD. The YTD value is the sum of cell
ref "A17" on each worksheet named JAN, FEB, MAR...etc upto
DEC. The value of "A17" is only taken into consideration
if the value of cell "R27" on the respective worksheets is
greater than "0". eg. if cell "R27" is value 0 on w/sheet
MAR then the YTD value is the sum of cells "A17" on
w/sheets JAN and FEB, if the value is 0 on w/sheet APR
then the YTD is the sum of cells "A17" on w/sheets JAN,
FEB and MAR...and so on.
I am using the following formula:
=IF(FEB!R27>0,SUM(JAN!R17),0)
This works fine but when I add the following to the
formula it does not do the correct calculation.
=IF(FEB!R27>0,SUM(JAN!R17),0),IF(MAR!R27>0,SUM(JAN!R17+FEB!
R17))
Could some kind person please tell me what I am doing
wrong and also tell me if there is another way of
acheiving what I want.
Thanks
worksheet named YTD. The YTD value is the sum of cell
ref "A17" on each worksheet named JAN, FEB, MAR...etc upto
DEC. The value of "A17" is only taken into consideration
if the value of cell "R27" on the respective worksheets is
greater than "0". eg. if cell "R27" is value 0 on w/sheet
MAR then the YTD value is the sum of cells "A17" on
w/sheets JAN and FEB, if the value is 0 on w/sheet APR
then the YTD is the sum of cells "A17" on w/sheets JAN,
FEB and MAR...and so on.
I am using the following formula:
=IF(FEB!R27>0,SUM(JAN!R17),0)
This works fine but when I add the following to the
formula it does not do the correct calculation.
=IF(FEB!R27>0,SUM(JAN!R17),0),IF(MAR!R27>0,SUM(JAN!R17+FEB!
R17))
Could some kind person please tell me what I am doing
wrong and also tell me if there is another way of
acheiving what I want.
Thanks