#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default sum of timesheet

Let's say A1: 9 am
A2: 12 pm
A3: 12:30 pm
A4: 3 pm
I need the total in A5 to calculate how many hours worked, but also if I
write "off" in A1:A4, I need A5 to say "off", so basically I need either the
total hours worked or the word "off" in A5. Is this possible? Thanks for
any help,
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 834
Default sum of timesheet

Try

=IF(COUNTIF(A1:A4,"off")=4,"off",SUM(A1:A4))

--

HTH

Bob

"nidabland" wrote in message
...
Let's say A1: 9 am
A2: 12 pm
A3: 12:30 pm
A4: 3 pm
I need the total in A5 to calculate how many hours worked, but also if I
write "off" in A1:A4, I need A5 to say "off", so basically I need either
the
total hours worked or the word "off" in A5. Is this possible? Thanks for
any help,



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,389
Default sum of timesheet

Is "off" in *every* cell of a1:a4, or *any* cell?
If every, try:
=if(countif(a1:a4,"off")=4,"off",a2-a1+a4-a3)

If any, change =4 to =1

Regards,
Fred

"nidabland" wrote in message
...
Let's say A1: 9 am
A2: 12 pm
A3: 12:30 pm
A4: 3 pm
I need the total in A5 to calculate how many hours worked, but also if I
write "off" in A1:A4, I need A5 to say "off", so basically I need either
the
total hours worked or the word "off" in A5. Is this possible? Thanks for
any help,


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
TIMESHEET Zaf Excel Worksheet Functions 2 June 20th 08 10:43 AM
Timesheet rachellock Excel Worksheet Functions 2 August 17th 07 02:18 AM
timesheet with OT mike New Users to Excel 2 October 15th 05 12:06 AM
Timesheet help kimmyrt Excel Worksheet Functions 3 March 22nd 05 04:34 AM
Timesheet Doug Excel Worksheet Functions 1 March 3rd 05 07:53 PM


All times are GMT +1. The time now is 01:07 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"