Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default criteria applies to a range of dates.

A B C D
Employee: Mary
Hire Date: 4/22/2006
Training Topic Hours Next Anniv.
4/16/08 Fish 7.5 4/22/2009
2/1/08 Birds 3
6/10/07 Cats 7.5
5/12/06 Dogs 3
____
Total

How can I SUM column C, only IF the dates in column A fall within a certain
date range? The employee needs to complete 15 hours of ongoing training each
year from anniversary to anniversary. (5/12/06 would not count for this
years total because it started over on 4/22/07.) This person should have 18
hours of current training. I don't want to delete the previous trainings but
I don't want them to show up in the current year total. I tried SUMIF but it
keeps giving me 0.

I want to sum the hours in column C if the training dates in column a fall
within the calculated date range. (4/22/08 - 4/22/09)

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default criteria applies to a range of dates.

On May 5, 4:43*pm, pebbles wrote:
* * * * A * * * * * * * * B * * * * * C * * * * * * *D * * * * *
* * * * Employee: Mary
* * * * Hire Date: 4/22/2006
* * * * Training * * Topic * * *Hours * *Next Anniv.
* * * * 4/16/08 * * *Fish * * * 7.5 * * * * * * 4/22/2009
* * * * 2/1/08 *Birds * 3
* * * * 6/10/07 * * * * Cats * *7.5
* * * * 5/12/06 * * *Dogs * * * 3
* * * * * * * * * * * * * * * * ____
* * * * * * * * * * * * * * * * Total

How can I SUM column C, only IF the dates in column A fall within a certain
date range? *The employee needs to complete 15 hours of ongoing training each
year from anniversary to anniversary. *(5/12/06 would not count for this
years total because it started over on 4/22/07.) *This person should have 18
hours of current training. *I don't want to delete the previous trainings but
I don't want them to show up in the current year total. *I tried SUMIF but it
keeps giving me 0. *

I want to sum the hours in column C if the training dates in column a fall
within the calculated date range. *(4/22/08 - 4/22/09)


You can create another column which takes Anniversary date - Training
Date. This will give you the number of days between the two dates,
then you can use the Sumif function. =sumif(columns where data
Annivesary Date- training date is held, "<366",column where training
hours is held)
i.e. =SUMIF(E31:E34,"<366",C31:C34)


There may be a way to do the comparison in the sumif statement itself,
but I don't know.
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default criteria applies to a range of dates.



" wrote:

On May 5, 4:43 pm, pebbles wrote:
A B C D
Employee: Mary
Hire Date: 4/22/2006
Training Topic Hours Next Anniv.
4/16/08 Fish 7.5 4/22/2009
2/1/08 Birds 3
6/10/07 Cats 7.5
5/12/06 Dogs 3
____
Total

How can I SUM column C, only IF the dates in column A fall within a certain
date range? The employee needs to complete 15 hours of ongoing training each
year from anniversary to anniversary. (5/12/06 would not count for this
years total because it started over on 4/22/07.) This person should have 18
hours of current training. I don't want to delete the previous trainings but
I don't want them to show up in the current year total. I tried SUMIF but it
keeps giving me 0.

I want to sum the hours in column C if the training dates in column a fall
within the calculated date range. (4/22/08 - 4/22/09)


You can create another column which takes Anniversary date - Training
Date. This will give you the number of days between the two dates,
then you can use the Sumif function. =sumif(columns where data
Annivesary Date- training date is held, "<366",column where training
hours is held)
i.e. =SUMIF(E31:E34,"<366",C31:C34)


There may be a way to do the comparison in the sumif statement itself,
but I don't know.

I took your suggestion, played with it a little and came up with this which
worked perfectly. Thanks for your help!
{SUM(IF($A$20<=(A5:A19),(C5:C19)*1),(C5:C19)*0)}
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,180
Default criteria applies to a range of dates.

Use Pivot Table for a
no formula solution:
http://www.freefilehosting.net/download/3gk7h
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
Help with SUMIF using a range of dates as criteria [email protected] Excel Discussion (Misc queries) 3 May 3rd 07 10:00 PM
Sum of data where a condition applies kippers Excel Discussion (Misc queries) 1 March 20th 07 12:45 PM
How to specify which cells/columns macro applies to? Workaholic Excel Worksheet Functions 1 August 14th 06 05:52 PM
Find dates in a range; then sum values in that range by a criteria Anders Excel Discussion (Misc queries) 4 October 21st 05 03:41 PM
can I use a range of dates as a criteria when using sumif? D@annyBoy Excel Worksheet Functions 5 December 2nd 04 01:37 PM


All times are GMT +1. The time now is 05:34 PM.

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

About Us

"It's about Microsoft Excel"