#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Time

I agree, he is an idiot. Thanks for the help. I will let you know how things
work out.


Paul

"Peo Sjoblom" wrote:

Tell her/him he's an idiot!

=SUBSTITUTE(SUBSTITUTE(MID(A1,FIND("-",A1)+1,2),"A",":00 AM"),"P",":00
PM")-SUBSTITUTE(SUBSTITUTE(LEFT(A1,FIND("-",A1)-1),"A",":00 AM"),"P",":00
PM")

if you want it as an integer use

=24*(SUBSTITUTE(SUBSTITUTE(MID(A1,FIND("-",A1)+1,2),"A",":00 AM"),"P",":00
PM")-SUBSTITUTE(SUBSTITUTE(LEFT(A1,FIND("-",A1)-1),"A",":00 AM"),"P",":00
PM"))


--
Regards,

Peo Sjoblom



"Panski" wrote in message
...
Peo,

Thank you for answering so soon. My supervivor does not want to change
current layout of schedule. I like your way but not able to use it. is
there
another way?

Paul

"Peo Sjoblom" wrote:

Use real times instead of text and put them in separate cells

07:00 AM in A1
03:00 PM in B1


=B1-A1





--
Regards,

Peo Sjoblom



"Panski" wrote in message
...
If a cell contains 7A-3P (Day shift). Is there a way to calulate the
total
hours in another cell?

Thank you,

Paul

I am a new guy






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
Formula to find Stop Time from Start Time and Total Minutes Jonathan Bickett Excel Worksheet Functions 5 March 7th 07 05:22 PM
template or formula for start time -finish time -total hours ple cc New Users to Excel 1 March 27th 06 06:06 PM
Calculating days & time left from start date/time to end date/time marie Excel Worksheet Functions 7 December 7th 05 02:36 PM
How to use solver to schedule part time and full time workforce? The Ooz Excel Discussion (Misc queries) 0 August 18th 05 06:53 AM
Remove time from a date and time field? Format removes the displa. oaoboc Excel Worksheet Functions 1 February 16th 05 07:20 PM


All times are GMT +1. The time now is 05:33 PM.

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"