VLookup and Sum

JTroy87

New Member
Joined
Oct 28, 2017
Messages
3
I'm very new to VLookup so I'm not sure if this is the best way to go about this.

I have two sheets. My first sheet has job numbers and dates like below.

1/1/20181/2/20181/3/2018
January
jobNum123
361421011
785221014
3067X4933
3067X4019

<tbody>
</tbody>

My second sheet has more job numbers, the date they were done, hours for each person on the job and whether the job was invoiced (marked with a U).


JobDateInvoiceHours
3067X401901/01/183.00
3067X401901/01/185.00
3067X401901/03/18U4.00
59763158901/04/187.00

<tbody>
</tbody>


My Goal is to find any job numbers on the first sheet, that are also on the second sheet, then to sum up all of the hours on a particular day. For example job number 3067X4019 had hours on 1/1/18 of 3 and 5, so the total on Sheet one would sum up to 8. Then there were 4 more hours on 1/3/18 so the end result for sheet one would look something like the below table. I would assume you do some combination of vlookup and sum but I have no idea how to account for the dates. Can someone please help?

1/1/20181/2/20181/3/2018
January
jobNum123
361421011
785221014
3067X4933
3067X40198 4

<tbody>
</tbody>
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
maybe something like...

obviously you would need to adapt it to your sheets

Unknown
ABCDEFGHI
11/1/20181/2/20181/3/2018JobDateInvoiceHours
2January3067X40191/1/20183
3jobNum1233067X40191/1/20185
43614210110003067X40191/3/2018U4
57852210140005976315891/4/20187
63067X4933000
73067X4019804

<tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
B4=SUMPRODUCT(($F$2:$F$5=$A4)*($G$2:$G$5=B$1),$I$2:$I$5)

<tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0
SUMIFS or SUMPRODUCT will both work. I don't know why I didn't think of that. I'm all good.

Thanks!
 
Upvote 0

Forum statistics

Threads
1,214,968
Messages
6,122,506
Members
449,089
Latest member
RandomExceller01

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