Formula

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

i created a spreadsheet where i will be tracking hours for our sales people.
i want to automatically track what hours they work. they usually send me the
time as (ex. 10 - 7,). I would like to get a formula that would automatically
add the time up as hours worked and automatically deduct an hour off for
lunch. can someone help me with this?
 
Assuming
A1 = 10:00 AM
B1 = 7:00 PM

In C1: =(B1-A1)*24-1

Format cells as General
 
works great.. now more thing..

if cell B1 and A1 are blank, i would like for C1 to be blank. how can i do
that?
 
=IF(OR(A1="",B1=""),"",B1-A1+11)


Phxlatinoboi® said:
works great.. now more thing..

if cell B1 and A1 are blank, i would like for C1 to be blank. how can i do
that?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Overtime Calculations 4
Time Calculated minus breaks & lunch 2
Timesheet - Formula 3
Excel Formula 2
Time formulation? 1
Time formula Needed 6
Formula difficulty 4
Show me your highest mileage HDD? 0

Back
Top