I need to be able to do more IF statements and for the
formula to be longer. We have seperate tabs for each month
and one for YTD info. It's easy enough to do with the
months that have passed, but it's the future months that
throw me off. I would be able to do it esaily, but my boss
wants 0's instead of blanks in future months, so that
throws off the YTD average. Theres probably a much
simpler way to do this, so let me know if you can. Here's
the formula I'd like to have in the YTD tab:
=IF(Feb.2003!b20=0,(Jan.2003!B20+Feb.2003!B20+Mar.2003!
B20+Apr.2003!B20+May.2003!B20+Jun.2003!B20+Jul.2003!
B20+Aug.2003!B20+Sep.2003!B20+Oct.2003!B20+Nov.2003!
B20+Dec.2003!B20)/1,IF(Mar.2003!b20=0,(Jan.2003!
B20+Feb.2003!B20+Mar.2003!B20+Apr.2003!B20+May.2003!
B20+Jun.2003!B20+Jul.2003!B20+Aug.2003!B20+Sep.2003!
B20+Oct.2003!B20+Nov.2003!B20+Dec.2003!B20)/2,IF(Apr.2003!
b20=0,(Jan.2003!B20+Feb.2003!B20+Mar.2003!B20+Apr.2003!
B20+May.2003!B20+Jun.2003!B20+Jul.2003!B20+Aug.2003!
B20+Sep.2003!B20+Oct.2003!B20+Nov.2003!B20+Dec.2003!
B20)/3,IF(May.2003!b20=0,(Jan.2003!B20+Feb.2003!
B20+Mar.2003!B20+Apr.2003!B20+May.2003!B20+Jun.2003!
B20+Jul.2003!B20+Aug.2003!B20+Sep.2003!B20+Oct.2003!
B20+Nov.2003!B20+Dec.2003!B20)/4,IF(Jun.2003!b20=0,
(Jan.2003!B20+Feb.2003!B20+Mar.2003!B20+Apr.2003!
B20+May.2003!B20+Jun.2003!B20+Jul.2003!B20+Aug.2003!
B20+Sep.2003!B20+Oct.2003!B20+Nov.2003!B20+Dec.2003!
B20)/5,IF(Jul.2003!b20=0,(Jan.2003!B20+Feb.2003!
B20+Mar.2003!B20+Apr.2003!B20+May.2003!B20+Jun.2003!
B20+Jul.2003!B20+Aug.2003!B20+Sep.2003!B20+Oct.2003!
B20+Nov.2003!B20+Dec.2003!B20)/6,IF(Aug.2003!b20=0,
(Jan.2003!B20+Feb.2003!B20+Mar.2003!B20+Apr.2003!
B20+May.2003!B20+Jun.2003!B20+Jul.2003!B20+Aug.2003!
B20+Sep.2003!B20+Oct.2003!B20+Nov.2003!B20+Dec.2003!
B20)/7,IF(Sep.2003!B20=0,(Jan.2003!B20+Feb.2003!
B20+Mar.2003!B20+Apr.2003!B20+May.2003!B20+Jun.2003!
B20+Jul.2003!B20+Aug.2003!B20+Sep.2003!B20+Oct.2003!
B20+Nov.2003!B20+Dec.2003!B20)/8,IF(Oct.2003!B20=0,
(Jan.2003!B20+Feb.2003!B20+Mar.2003!B20+Apr.2003!
B20+May.2003!B20+Jun.2003!B20+Jul.2003!B20+Aug.2003!
B20+Sep.2003!B20+Oct.2003!B20+Nov.2003!B20+Dec.2003!
B20)/9,IF(Nov.2003!B20=0,(Jan.2003!B20+Feb.2003!
B20+Mar.2003!B20+Apr.2003!B20+May.2003!B20+Jun.2003!
B20+Jul.2003!B20+Aug.2003!B20+Sep.2003!B20+Oct.2003!
B20+Nov.2003!B20+Dec.2003!B20)/10,IF(Dec.2003!B20=0,
(Jan.2003!B20+Feb.2003!B20+Mar.2003!B20+Apr.2003!
B20+May.2003!B20+Jun.2003!B20+Jul.2003!B20+Aug.2003!
B20+Sep.2003!B20+Oct.2003!B20+Nov.2003!B20+Dec.2003!
B20)/11,IF(Dec.2003!B20>0,(Jan.2003!B20+Feb.2003!
B20+Mar.2003!B20+Apr.2003!B20+May.2003!B20+Jun.2003!
B20+Jul.2003!B20+Aug.2003!B20+Sep.2003!B20+Oct.2003!
B20+Nov.2003!B20+Dec.2003!B20)/12)))))))))))))