Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default A quickie for you

Hi Champs!
I got stuck in a string operation in excel. I hope you can help.
In a cell we have 16:15, 17:15 & 19:01 as ="16:15" & ", " & "17:15" &
" & " & "19:01". We want to add four and haf hours to each and display
in the adjacent cell.
The best I could come up with was: =TIME(LEFT(LEFT(E5,5),2),RIGHT(LEFT
(E5,5),2),0)+TIME(4,30,0) & ", " & TIME(LEFT(RIGHT(LEFT(E5,12),5),
2),RIGHT(RIGHT(LEFT(E5,5),5),2),0)+TIME(4,30,0) & " & " & TIME(LEFT
(RIGHT(E5,5),2),RIGHT(RIGHT(E5,5),2),0)+TIME(4,30, 0), where E5 is the
cell where initial times are.

which resulted in 0.864583333333333, 0.90625 & 0.979861111111111 :).
Thats when I stopped and turned to this group.

Thanks for your help.!

Best Regards,
Abhijat
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default A quickie for you

Hi Champs!
I got a quick fix myself ....
its
=LEFT(LEFT(E5,5),2)+4 &":"& RIGHT(LEFT(E5,5),2)+30 & ", " & LEFT(RIGHT
(LEFT(E5,12),5),2) + 4 & ":" & RIGHT(RIGHT(LEFT(E5,5),5),2)+30 & " & "
& LEFT(RIGHT(E5,5),2)+4 & ":" & RIGHT(RIGHT(E5,5),2)+30

it gives the result as
20:45, 21:45 & 23:31


Thanks a lot

Best Regards,
Abhijat


On Jun 29, 8:52*pm, Abhijat wrote:
Hi Champs!
I got stuck in a string operation in excel. I hope you can help.
In a cell we have 16:15, 17:15 & 19:01 as ="16:15" & ", " & "17:15" &
" & " & "19:01". We want to add four and haf hours to each and display
in the adjacent cell.
The best I could come up with was: =TIME(LEFT(LEFT(E5,5),2),RIGHT(LEFT
(E5,5),2),0)+TIME(4,30,0) & ", " & TIME(LEFT(RIGHT(LEFT(E5,12),5),
2),RIGHT(RIGHT(LEFT(E5,5),5),2),0)+TIME(4,30,0) & " & " & TIME(LEFT
(RIGHT(E5,5),2),RIGHT(RIGHT(E5,5),2),0)+TIME(4,30, 0), where E5 is the
cell where initial times are.

which resulted in 0.864583333333333, 0.90625 & 0.979861111111111 * :).
Thats when I stopped and turned to this group.

Thanks for your help.!

Best Regards,
Abhijat


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
Quickie Kev Excel Discussion (Misc queries) 6 June 7th 07 03:26 PM
A Quickie missymissy Excel Discussion (Misc queries) 5 December 22nd 05 01:26 AM
Quickie on Pivots Soapydux Excel Discussion (Misc queries) 4 November 24th 05 12:08 AM
Another quickie... Heatherbelle89 Excel Discussion (Misc queries) 2 July 9th 05 05:44 AM
A Quickie gradientS Excel Discussion (Misc queries) 5 February 16th 05 08:50 AM


All times are GMT +1. The time now is 09:47 PM.

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

About Us

"It's about Microsoft Excel"