Hello,
I have a spreadsheet developed for an entire years worth of daily work. I have a starting date for the year and an end date for the year, 10,1,2009 - 9,30,2010.
I am trying to develop a formula that will search the entire year work dates and each time the same date appears will sum a third column that has hours per day assigned to that specific date. I.E. if i have 3 of the same dates spread throughout the year and 2 hours of work assigned for that date it will sum the hours and return 6 (3 days times 2 hours = 6). I want to be able to fill out my year work schedule and use the formula to see if i have over 8 hours assigned per date / day for the entire year. Unfortunately i am not allowed to set my schedule in ascending order, i have to list groups of work for the year and that is requiring me to have the same date appear in several different areas of my year schedule as i only assign a few hours of work to each group that i work on daily to total 8 hours per day.
Try Sumif. See Excel help for more.
e.g
=Sumif($A$1:$A$100,X1,$B$1:B$100)
this will sum values in B1:B100 where A1:A100 has same value (date) as entry in X1
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
Tried that and it works for one column of dates, but will not seek dates between a two column date range. Spreadsheet is an example of what I am trying to accomplish. Basically, what I am trying to have a formula do is to search for a single date between a date range even if it shows several times within a date range and total or sum the number of hours associated with that single date. (spreadsheet yellow column)
Can you fill that column with expected results.. I am not sure I follow.
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
Try:
=SUMPRODUCT(--($B$5:$B$19<=G5),--($C$5:$C$19>=G5),$E$5:$E$19)
copied down
You can hide 0's by formatting cells as custom: 0;-0;;@
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks