Jan 14 2021 06:47 AM
Jan 14 2021 06:47 AM
I have a spread sheet where I register hours worked at certain jobs daily and each spreadsheet covers a weekly basis. The issue is a want to get daily totals and then weekly totals. If I use the filter function it removes cells that contain time from another person but on another day of the week. The issue im having with Vlookup is that about 20 clients make up 90% of the work so when I search for company like apple there will be 15 results on a single day. Is there a way to get a sum for all the vlookup values or another way of solving my issue.
Jan 14 2021 07:02 AM - edited Jan 14 2021 07:03 AM
@Jeff_Kimrey Without knowing the specifics, in general, you should consider using SUMIFS instead of VLOOKUP.
If you want further assistance, in general, when you have a question about function usage, you should provide a detailed example that shows representative data, any formulas that you use, and expected results, which you might need to calculate manually, if you can.
The best way to do that in this forum is to attach an example Excel file (not an image), which is redacted.
Jan 20 2021 09:25 AM
@Joe User I attached an example spread sheet what I am trying to end up with is weekly totals of hours worked for specific clients. Like how many hours worked for apple this week. I know it is possible with filter and sub total but I can only get daily totals and then I would have to repeat this serval times with different clients from my understanding. My preferred outcome if possible is just have a list at the bottom that has weekly hours worked for each company.
Jan 23 2021 10:45 AM - edited Jan 24 2021 07:23 AM
@Jeff_Kimrey IMHO, it would be better to have separate columns labeled date (A), employee (B), hours (C), client (D). Then you could use a formula of the form:
=SUMIFS(C2:C200, D2:D200, "apple")
For more general summary tables, see F1:M7 and F9:L17 in Sheet4 in the attached file.
In fact, I suspect you could use pivot tables to construct such summaries. I am not a PT person. So I cannot help you with that. And beware: there are downsides to using PT; for example, I believe they do not auto-calculate(!). For that reason, I do not like PTs.
With your design in Sheet1, you could use a formula of the form: