Need some help generating a formula for a deduction

NathanB

New Member
Joined
Dec 29, 2010
Messages
8
Hello all!

First post, here. I have a working knowledge of Excel, but not a lot beyond that (i.e. very little experience in writing formulas). Here's my situation:

I'm woking on modifying a timesheet record for my company. On the spreadshhet we record our hours for the day at up to three locations and the total hours for the day are added from the three sectors and shown at the far right of the row. That's the simple part. Here's what I want to do with this. Sometimes we take a 1/2 hr unpaid luch and sometimes we don't. I'd like to add a "lunch" column that the crew leaders can use to show if a lunch was taken or not. Maybe just typing in either a "Y" or "N" to show this. If the crew leader types in a "Y" in this column, I'd like there to be a deduction of - 0.5 hour from the total hours for the day sector. I'm sure there is a way to do this or some similar someone has done in the past. How can I do this?

Any help is appreciated. Thanks!
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Hi. Something like this perhaps

Excel Workbook
ABCDE
1Loc ALoc BLoc CLunchTotal
202:3003:1502:45Y08:00
Sheet7
 
Upvote 0
=IF(D1="y",SUM(A1:C1)-0.5,SUM(A1:C1))


...edit: wait a sec...just occured to me...are you wanting to potentially reduce EACH sector by 0.5 ? rather than just the total...?

so you need the possibility to enter a Y or N for each of the three sectors ?
 
Last edited:
Upvote 0
No, I just needed to deduct -0.5 from the total hours for the day.

Thanks for the quick replies! This has taken care of my question!
 
Upvote 0

Forum statistics

Threads
1,215,432
Messages
6,124,858
Members
449,194
Latest member
HellScout

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