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.
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.

Special-K99

Well-known Member
Joined
Nov 7, 2006
Messages
8,352
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.
 

Forum statistics

Threads
1,136,798
Messages
5,677,801
Members
419,720
Latest member
kurman

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top