IF statement for simple hours calculation spreadsheet

ajcgoldrush

New Member
Joined
Nov 24, 2018
Messages
2
Hi,

I'm trying to install an "IF" statement on a simple spreadsheet where the employee puts in a simple "Y" or "N" if an associate worked a particular day (Monday to Sunday 2 week period therefore 15 days). I currently have this for one day =IF(C4="Y",1,0) but would like to encompass all 15 columns (C4 to Q4) for a total days worked, not just one. I currently just have used the row below each column and then did a sum in column R using this =SUM(C5:Q5).
What are my options to just use the row 4 "Y" or "N" in column R instead?

Thanks,

AJ
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
you could use a COUNTIF() and count how many Y there are

=Countif(C4:Q4,"Y")
that will count how many Y's are in the row 4 from column C to Q
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,176
Members
453,021
Latest member
Justyna P

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