Calculating Total Hours from Range of Dates

Matalyn

New Member
Joined
Oct 17, 2014
Messages
24
Everyday, I will input the hours I spend on a specific task (range G:EE), the date I started working on the project (cell C4), and the date I finished it (cell D4). I want google spreadsheets to automatically calculate (within F4) the total number of hours I spent on the project between the start date and the end date.

What would the formula look like? I'm assuming its a form of the SUMIFS formula but not sure how to set it up?

Cell: A4=project employee is working on (range A4:AEE)-never ending
Cell: C4=Start Date
Cell: D4-Completion Date
Row 3 Columns G:EE is a 2014-2015 calendar of dates that are never ending
Cell: F4=Total Hours worked
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
G:EE is only 125 columns. Are there three rows? How is the data in those cells? Can there be more than one project in the cell? Any sample cells you can share?
 
Upvote 0
To clarify: when I said EE, I meant like infinity but that was my bad because I forgot excel does actually have a column value of EE. hahaha
 
Upvote 0
You should have access now to that document.

In addition to my previous question, can you help me with this as well??:

I want all columns (within the calendar section of the excel doc.) to automatically hide if the date in Row 3 is 10 days prior to Todays date or more than 30 days after today's date. This way only 40 days will show at one time. Also, when I open the document, I want the calendar section to automatically go to todays date.

Is this possible?

Thanks!!
 
Upvote 0

Forum statistics

Threads
1,223,246
Messages
6,170,988
Members
452,373
Latest member
TimReeks

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