Extracting Time Spent on a Project in a Given Month

G Wiz

New Member
Joined
Jan 6, 2022
Messages
16
Office Version
  1. 365
Platform
  1. Windows
Is there a way to get excel to use data validation to select a month, and it give results in a cell that picks out only the entries based on the month selected.

The dates are currently entered in this format:

16/08/2021
21/08/2021
29/08/2021
30/08/2021
04/09/2021
07/09/2021
11/09/2021
11/09/2021
11/09/2021
12/09/2021
13/09/2021
13/09/2021
13/09/2021
13/09/2021

This would also need to be based on another data validation result.

I'd like to have a sheet calculate the amount of hours worked on a project in a selected month:

Project #Project TitleMonthHours
ECAECA abcdefgJanuary

The hours and month would need to refer back to the main timesheet entries:

DateStartFinishHoursProject #Project Title
16/08/202121:1522:3001:15ECAECA abcdefg
21/08/202113:3017:0003:30ECAECA abcdefg
29/08/202120:3023:0002:30ECAECA abcdefg
30/08/202110:3011:4501:15ECAECA abcdefg
04/09/202111:3013:3002:00ECAECA abcdefg
07/09/202121:3022:3001:00ECAECA abcdefg
11/09/202114:4515:3000:45ECAECA abcdefg
11/09/202116:3016:4500:15ECAECA abcdefg
11/09/202118:0019:0001:00ECAECA abcdefg
12/09/202120:3023:1502:45ECAECA abcdefg
13/09/202107:3008:3001:00ECAECA abcdefg

Is this achievable?
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
I'd recommend using the 1st of the month in your selection criteria (cell J3 below) because you can include the year that way. Then you can do something like this:

Book1
ABCDEFGHIJK
1DateStartFinishHoursProject #Project Title
216/08/202121:1522:301:15ECAECA abcdefgProject #Project TitleMonthHours
321/08/202113:3017:003:30ECAECA abcdefgECAECA abcdefg1/09/20218:45
429/08/202120:3023:002:30ECAECA abcdefgECAECA abcdefgSeptember8:45
530/08/202110:3011:451:15ECAECA abcdefg
64/09/202111:3013:302:00ECAECA abcdefg
77/09/202121:3022:301:00ECAECA abcdefg
811/09/202114:4515:300:45ECAECA abcdefg
911/09/202116:3016:450:15ECAECA abcdefg
1011/09/202118:0019:001:00ECAECA abcdefg
1112/09/202120:3023:152:45ECAECA abcdefg
1213/09/20217:308:301:00ECAECA abcdefg
13
Sheet46
Cell Formulas
RangeFormula
K3K3=SUMIFS(D2:D12,A2:A12,">="&J3,A2:A12,"<="&EOMONTH(J3,0),E2:E12,H3)
K4K4=SUMPRODUCT(D2:D12,--(E2:E12=H4),--(TEXT(A2:A12,"mmmm")=J4))


If you want to stick with the month only, you can try the K4 formula.
 
Upvote 0
Right, OK. Ill give that a go! Thanks.
Will update on progress...
 
Upvote 0

Forum statistics

Threads
1,214,615
Messages
6,120,538
Members
448,970
Latest member
kennimack

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