View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
JL InRe JL InRe is offline
external usenet poster
 
Posts: 1
Default sumif plus (items/#days til date)

Given this table
A B C D
1 1717 1697 20 3/15/07
2 934 839 95 3/30/07
3 853 594 259 2/23/07

I need the sum of B and C (adding C only if D is between 2 dates) plus for
dates in D a certain date (2/26/07) take C divided by # of days between
today and that date in D. I need 1 lump sum. I have a formula that works,
but I do not want to enter C/#days for each row as the real sheet is roughly
28 rows and growing. Is there a simpler way? For your knowledge the formula
that partially works is: =IF('2-19-07'!$Y$3'Overall
Completion'!$A$6,('2-19-07'!$U$3/DAYS360(TODAY(),'2-19-07'!$Y$3))+SUM('2-19-07'!$T$3:$T$28)+SUMIF('2-19-07'!$Y$3:$Y$28,"<"&$A$7,'2-19-07'!$U$3:$U$28),SUM('2-19-07'!$T$3:$T$28)+SUMIF('2-19-07'!$Y$3:$Y$28,"<"&$A$7,'2-19-07'!$U$3:$U$28))