Vlookup

Copper Contributor

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.

3 Replies

@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.

@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. 

@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:

 

=SUMPRODUCT(B2:N100,--(C2:O100="apple"))