A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
I have a formula that takes two cells and multiplies them then adds this product to two more cells that are multiplied, etc etc etc about 27 times. (i.e. A1*B1+A3*B3+A5*B5...) The cells are all number formatted, but these cells contain formulas that would return a blank ("") if certain conditions are not met. Since some of the cells are blank, excell returns the #Value! error. I wanted to keep the blanks, rather than 0s for esthetic reasons, since this is a large spreadsheet. Might there be a way to do this?
Try this...
=SUMPRODUCT(--(MOD(ROW(A1:A5)-ROW(A1),2)=0),--(ISNUMBER(A1:A5)),A1:A5,--(ISNUMBER(B1:B5)),B1:B5)
--
Biff
Microsoft Excel MVP
Actually, we don't need the ISNUMBER tests:
=SUMPRODUCT(--(MOD(ROW(A1:A5)-ROW(A1),2)=0),A1:A5,B1:B5)
--
Biff
Microsoft Excel MVP