If, sumif, sumproduct????

cr2crf

New Member
Joined
Jun 19, 2013
Messages
40
Good morning and thanks in advance for your help.

I am trying to figure out what function to use and how to write a formula that will tell me If Bill Bob worked during week 1, and his name appears on the list of those that worked (sheet1!A:A), and that week has four 8 hour days as indicated in the cell Sheet2!C2, credit him with 40 hours in C4. Bob's name can appear on any row in any given week so I used the A:A to signify anywhere in the column.

Here is my crude example of my worksheet:

Sheet1 (Columns A-D, Rows 1-7)
WEEK 1 (H)WEEK 2WEEK 3WEEK 4
30-Dec-176-Jan-1813-Jan-1820-Jan-18
totototo
5-Jan-1812-Jan-1819-Jan-1826-Jan-18
OFFICERSOFFICERSOFFICERSOFFICERS
Bill BobCarl CreditDon DiamondCarl Credit
Don DiamondBill Bob

<tbody>
</tbody>


Sheet2 (Columns A-G, Rows 1-6)

R = 5, H = 4HRRRR
CURRENT45555
BANK
Bill Bob154
Carl Credit154
Don Diamond154

<tbody>
</tbody>


I am using Excel 2016 on Office 365.

Any help would be appreciated!
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
I'm a bit confused about the 40 hours part (wouldn't 4 x 8hour shifts be 32?), but the simplest version of what you've asked for would be, in cell C4, =IF(ISNUMBER(MATCH(A4,Sheet1!A:A,0)),40,0)

If you want the 40 to be calculated somehow, then just replace the 40 with another equation. If you want to be able to select the week, then I could add a week number input to this as well.
 
Upvote 0
Solution

Forum statistics

Threads
1,214,788
Messages
6,121,603
Members
449,038
Latest member
Arbind kumar

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