Multiple criteria with VLOOKUP and SUMIF

Tim0705

New Member
Joined
Jan 12, 2021
Messages
5
Office Version
  1. 365
Platform
  1. Windows
I have a spreadsheet where i need to add up the number of days worked based on mutliple criteria and multiple sheets. What formula should i use?

What i need to do is:

1. Take the Full Name from Column C in Sheet 1 and match every entry in Sheet 2 Column C where there could be multiple rows with that person's name. (Sheet2 being raw data and Sheet 1 being a summary).
2. Once the above has been carried out i then need to add all the days worked (Column G SHeet2) where that person has worked and the Type (Column H in SHeet 2) matches the merged cell G1 (in this example reads 138s).

In the end it should add up all the days worked on the type of vessel for each individual in Column I on Sheet 1.

Not sure how to do it but have tried SUMIFS, VLOOKUP and COUNTIF.

Appreciate the guidance

Regards,

Tim.
 

Attachments

  • SHEET1.jpg
    SHEET1.jpg
    28.9 KB · Views: 18
  • SHEET2.jpg
    SHEET2.jpg
    27.7 KB · Views: 20

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Will this work?
Cell I3 and downward
=SUMIFS(Sheet2!G:G,Sheet2!C:C,Sheet1!C3,Sheet2!H:H,Sheet1!$G$1)
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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