R
ryan.fitzpatrick3
This probably is an easy answer I hope. I have 2 columes: col A has
dates lets say 11-1-08 to 11-10-08 and col B has numbers, any number.
Now if I want to do sum up col B by only pulling the last 5 dates in
col A, 11-6-08 to 11-10-08 how would I do this.
I have something like:
S3 in this case is how many days I want to go back, 5 days in this
case. so S3 has 5 in cell.
=SUMPRODUCT(($A$3:$A$10>$S3),B$3:$B$10)
I totally sure this is incorrect but I know i'm at least on the right
track, because I've used sumproduct before but only matching cells in
ranges and not summing up greater or less than a certain date. Does
this make sense?
Ryan
dates lets say 11-1-08 to 11-10-08 and col B has numbers, any number.
Now if I want to do sum up col B by only pulling the last 5 dates in
col A, 11-6-08 to 11-10-08 how would I do this.
I have something like:
S3 in this case is how many days I want to go back, 5 days in this
case. so S3 has 5 in cell.
=SUMPRODUCT(($A$3:$A$10>$S3),B$3:$B$10)
I totally sure this is incorrect but I know i'm at least on the right
track, because I've used sumproduct before but only matching cells in
ranges and not summing up greater or less than a certain date. Does
this make sense?
Ryan