Counting

maine32

New Member
Joined
Jul 23, 2010
Messages
24
I have a question I really hope someone can help with. I am doing a vacation accrual, and what I want to do is write a formula that says if check dates are between x and y dates then give the total number of hours taken between those dates. Thank you so much.
 

Some videos you may like

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).

Special-K99

Well-known Member
Joined
Nov 7, 2006
Messages
8,344
Try (untested)
=SUMPRODUCT((A1:A100 > = DATEVALUE("26/07/2010")*(B1:B100 < = DATEVALUE("26/07/2010")*(C1:C100))

where A1 is start date
B1 is end date
C1 is number of hours
 

maine32

New Member
Joined
Jul 23, 2010
Messages
24
Thank you so much. One more question if you dont mind. On one page I have a list of names dates of hire and check dates. Next to the check dates I have hours so I can plug in this formula and it should search the check dates for that person and let me know how many total hours between the dates he has used? Also how do I like that formula from one worksheet to the worksheet with the data. Thank you again.
 

Subscribe on YouTube

Watch MrExcel Video

Forum statistics

Threads
1,106,405
Messages
5,511,164
Members
408,828
Latest member
Csmnvld

This Week's Hot Topics

  • Turn fraction around
    Hello I need to turn a fraction around, for example I have 1/3 but I need to present as 3/1
  • TIme Clock record reformatting to ???
    Hello All, I'd like some help formatting this (Tbl-A)(Loaded via Power Query) [ATTACH type="full" width="511px" alt="PQdata.png"]22252[/ATTACH]...
  • TextBox Match
    hi, I am having a few issues with my code below, what I need it to do is when they enter a value in textbox8 (QTY) either 1,2 or 3 the 3 textboxes...
  • Using Large function based on Multiple Criteria
    Hello, I can't seem to get a Large formula to work based on two criteria's. I can easily get a oldest value based one value, but I'm struggling...
  • Can you check my code please
    Hi, Im going round in circles with a Compil Error End With Without With Here is the code [CODE=rich] Private Sub...
  • Combining 2 pivot tables into 1 chart
    Hello everyone, My question sounds simple but I do not know the answer. I have 2 pivot tables and 2 charts that go with this. However I want to...
Top