days worked spreadsheet

awhite1

New Member
Joined
Apr 16, 2019
Messages
10
I need help creating a formula that will count two cells if they meet a criteria and have those two cells equal "1", not "1"per cell, 1 for both of the cells. and then equal zero if the criteria is not met. i am building a spread sheet that has 7 columns (one for each day of the week) then has a row under each day for straight time hours and one for overtime hours. i need to be able to count a day as "1" if it has any hours in either of the rows.


Mon Tues Wed Thur Fri Sat Sun
MOB 8 8 8 8 8 0 0
0 2 2 2 2 10 0



This would equal 5. I don't want to count Monday because it is a MOB day or Sunday because no hours were worked. Then i would like to apply this to multiple weeks. can any one help? I hope i gave enough information.
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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