N
nca77
hey all,
thanks for the help last week.. it was great!
the formula worked great but now i'd like to tweak it..
basically i paste data in A2:C5000
and have dates D1:BL1
then these 2 formulas:
=-(SUMPRODUCT((DATE(YEAR($C$2:$C$5000),MONTH($C$2:$C$5000),DAY(D$1))=DATE(YEAR(D$1),MONTH(D$1),DAY(D$1)))*$B$2:$B$5000))
=IF(D2=0,"0",(SUMPRODUCT((DATE(YEAR($C$2:$C$5000),MONTH($C$2:$C$5000),DAY(D$1))=DATE(YEAR(D$1),MONTH(D$1),DAY(D$1)))*$B$2:$B$5000*$A$2:$A$5000)/SUMPRODUCT((DATE(YEAR($C$2:$C$5000),MONTH($C$2:$C$5000),DAY(D$1))=DATE(YEAR(D$1),MONTH(D$1),DAY(D$1)))*$B$2:$B$5000))/100)
everything works good but i'd like the formula to include values i
A2:C5000 only if they are positive numbers.
Thanks in advance
nic
thanks for the help last week.. it was great!
the formula worked great but now i'd like to tweak it..
basically i paste data in A2:C5000
and have dates D1:BL1
then these 2 formulas:
=-(SUMPRODUCT((DATE(YEAR($C$2:$C$5000),MONTH($C$2:$C$5000),DAY(D$1))=DATE(YEAR(D$1),MONTH(D$1),DAY(D$1)))*$B$2:$B$5000))
=IF(D2=0,"0",(SUMPRODUCT((DATE(YEAR($C$2:$C$5000),MONTH($C$2:$C$5000),DAY(D$1))=DATE(YEAR(D$1),MONTH(D$1),DAY(D$1)))*$B$2:$B$5000*$A$2:$A$5000)/SUMPRODUCT((DATE(YEAR($C$2:$C$5000),MONTH($C$2:$C$5000),DAY(D$1))=DATE(YEAR(D$1),MONTH(D$1),DAY(D$1)))*$B$2:$B$5000))/100)
everything works good but i'd like the formula to include values i
A2:C5000 only if they are positive numbers.
Thanks in advance
nic