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

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
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
 
Upvote 0
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.
 
Upvote 0

Forum statistics

Threads
1,213,546
Messages
6,114,251
Members
448,556
Latest member
peterhess2002

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
Back
Top