Hello! I'm somewhat new to Excel, so I pre-apologize for any ignorance and appreciate your time. I am working on a spreadsheet for a small department where I work to track our time at the company's various locations. I have a setup with a couple of sheets, the first with the information being input, the second with a couple of tables pulling data from the first. I have been trying to get a table working that pulls data on the hours each person in the department spends offsite (away from our main site) during each month. So the data sheet looks something like:
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD](A) Initials[/TD]
[TD](B) Date[/TD]
[TD](C) Time In[/TD]
[TD](D) Time Out[/TD]
[TD](E) Hours[/TD]
[TD](F) Location[/TD]
[/TR]
[TR]
[TD]AAA[/TD]
[TD]7/16/18[/TD]
[TD]7:32[/TD]
[TD]14:35[/TD]
[TD]7:00[/TD]
[TD]Site#2[/TD]
[/TR]
[TR]
[TD]BBB[/TD]
[TD]7/19/18[/TD]
[TD]8:43[/TD]
[TD]17:24[/TD]
[TD]8:45[/TD]
[TD]Site#4[/TD]
[/TR]
[TR]
[TD]AAA[/TD]
[TD]7/22/18[/TD]
[TD]7:01[/TD]
[TD]15:03[/TD]
[TD]8:00[/TD]
[TD]Site#3[/TD]
[/TR]
</tbody>[/TABLE]
So A:F columns are the persons initials, the date, their time in, their time out, an hours column auto calculated and rounded to 15 minute intervals, and finally the location of the site they were at.
I haven't been able to get a working formula to pull the data for each person, for each month. For example, AAA put in 15 hours offsite in July. I have read countless sites and tried countless formulas. I would greatly appreciate your help on this. The formula I have right now is:
=SUMPRODUCT(--(MONTH((Sheet1!$B:$B)=F2)), --(Sheet1!$A:$A="AAA"), Sheet1!$E:$E)
F2 in this is on sheet two and is a cell formatted for the month but is just 1/1/2018 in the cell. The month function in this doesn't seem to be working in this, as it just currently pulls all of the total hours from all months for AAA. Is this a problem with the way I am using the month function? I tried using different already existing cells for the month instead of F2, but that didn't help. Sorry if my mistake is egregious or obvious. Like I've mentioned, I'm fairly new to excel.
Thanks for your time!
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD](A) Initials[/TD]
[TD](B) Date[/TD]
[TD](C) Time In[/TD]
[TD](D) Time Out[/TD]
[TD](E) Hours[/TD]
[TD](F) Location[/TD]
[/TR]
[TR]
[TD]AAA[/TD]
[TD]7/16/18[/TD]
[TD]7:32[/TD]
[TD]14:35[/TD]
[TD]7:00[/TD]
[TD]Site#2[/TD]
[/TR]
[TR]
[TD]BBB[/TD]
[TD]7/19/18[/TD]
[TD]8:43[/TD]
[TD]17:24[/TD]
[TD]8:45[/TD]
[TD]Site#4[/TD]
[/TR]
[TR]
[TD]AAA[/TD]
[TD]7/22/18[/TD]
[TD]7:01[/TD]
[TD]15:03[/TD]
[TD]8:00[/TD]
[TD]Site#3[/TD]
[/TR]
</tbody>[/TABLE]
So A:F columns are the persons initials, the date, their time in, their time out, an hours column auto calculated and rounded to 15 minute intervals, and finally the location of the site they were at.
I haven't been able to get a working formula to pull the data for each person, for each month. For example, AAA put in 15 hours offsite in July. I have read countless sites and tried countless formulas. I would greatly appreciate your help on this. The formula I have right now is:
=SUMPRODUCT(--(MONTH((Sheet1!$B:$B)=F2)), --(Sheet1!$A:$A="AAA"), Sheet1!$E:$E)
F2 in this is on sheet two and is a cell formatted for the month but is just 1/1/2018 in the cell. The month function in this doesn't seem to be working in this, as it just currently pulls all of the total hours from all months for AAA. Is this a problem with the way I am using the month function? I tried using different already existing cells for the month instead of F2, but that didn't help. Sorry if my mistake is egregious or obvious. Like I've mentioned, I'm fairly new to excel.
Thanks for your time!