Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
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))
  #2   Report Post  
Posted to microsoft.public.excel.misc
bj bj is offline
external usenet poster
 
Posts: 1,397
Default sumif plus (items/#days til date)

assuming in your example and formula column T is B Column U is B and Column
yY is d
try
=SUM( ('2-19-07'!$T$3:$Y$64000
)+sumproduct(--(('2-19-07'!$Y$3:$Y$664000date(date1),--('2-19-07'!$Y$3:$Y$64000<date(date
2),'2-19-07'!$U$3:$U$64000)+sumproduct(--(('2-19-07'!$Y$3:$Y$64000date(date3),'2-19-07'!$U$3:$U$64000/(days360(TODAY(),'2-19-07'!$Y$3:y64000))

I think Date3 is 'Overall Completion'!$A$6
Date1 is $A$7
I can't tell what date 2 from your equation
Plus in your equation you are double summing the column C for the dates
grater than Date 3. If you want to do this, the above equation needs to be
changed

"JL InRe" wrote:

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))

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 25
Default sumif plus (items/#days til date)

Can you use a brute-force method? Just split the operations up into smaller
chunks. In Column E put in a formula like:
IF(OR(D1date1),(D1<date2)),SUM(B1,C1),0). In column F put in something
like: IF(D1=date3,C1/(TODAY()-date3),0). Then copy alongside all of the rows
with data and sum columns E and F. Somewhere off to the side define three
cells as date1, date2, and date3 and put in whatever dates meet your
criteria. It's ugly, but hey, if it gets the right answer...

Good luck!

"JL InRe" wrote:

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))

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
report date - date rec.ved=days late, but how to rid dates complet MS Questionnairess Excel Worksheet Functions 3 January 25th 07 06:17 PM
Report Date - Date Recv = Days Late, but how to rid completed date MS Questionnairess Excel Worksheet Functions 1 January 24th 07 11:05 PM
Excel Formula to calulate number of days passed from date to date K. Mack Excel Discussion (Misc queries) 8 January 4th 07 11:27 PM
Sumif only unique items Jay Excel Discussion (Misc queries) 0 August 9th 06 04:42 PM
Calculating days between current date and a date in future NETWORKDAYS() function Faheem Khan Excel Worksheet Functions 2 February 10th 05 07:18 PM


All times are GMT +1. The time now is 03:33 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"