Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Create Formula Using Select Values of a Cell

Hello,

I'm trying to create a formula using only select values of a cell.

For example cell G1 has the following data:

12/Nov/2009 1620ZULU

I'd like to create a formula which deducts five hours from the zulu time.
Essentially I'd like the cell to read:

12/Nov/2009 1120EST

Please help! Thanks in advance.




  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Create Formula Using Select Values of a Cell

Try the below formula with the text in cell A1

=TEXT(DATEVALUE(LEFT(A1,FIND(" ",A1)-1))+
TIME(MID(A1,FIND(" ",A1)+1,2),
MID(A1,FIND(" ",A1)+3,2),0)-(5/24),"dd/mmm/yyyy hhmm") & "EST"

If this post helps click Yes
---------------
Jacob Skaria


"Harpo" wrote:

Hello,

I'm trying to create a formula using only select values of a cell.

For example cell G1 has the following data:

12/Nov/2009 1620ZULU

I'd like to create a formula which deducts five hours from the zulu time.
Essentially I'd like the cell to read:

12/Nov/2009 1120EST

Please help! Thanks in advance.




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Create Formula Using Select Values of a Cell

Will the time portion *always* be 4 digits?

--
Biff
Microsoft Excel MVP


"Harpo" <Harpo @discussions.microsoft.com wrote in message
...
Hello,

I'm trying to create a formula using only select values of a cell.

For example cell G1 has the following data:

12/Nov/2009 1620ZULU

I'd like to create a formula which deducts five hours from the zulu time.
Essentially I'd like the cell to read:

12/Nov/2009 1120EST

Please help! Thanks in advance.






  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default Create Formula Using Select Values of a Cell

Give this formula a try...

=TEXT((LEFT(A1,LEN(A1)-6)&":"&MID(A1,
LEN(A1)-5,2))-5/24,"d/mmm/yyyy hhmm""EST""")

--
Rick (MVP - Excel)


"Harpo" <Harpo @discussions.microsoft.com wrote in message
...
Hello,

I'm trying to create a formula using only select values of a cell.

For example cell G1 has the following data:

12/Nov/2009 1620ZULU

I'd like to create a formula which deducts five hours from the zulu time.
Essentially I'd like the cell to read:

12/Nov/2009 1120EST

Please help! Thanks in advance.





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 select values Emece Excel Discussion (Misc queries) 1 January 26th 09 07:38 PM
Using a formula to select a cell using the row and column values RodneyN Excel Worksheet Functions 8 December 30th 08 08:15 AM
select date range then find average of values in another cell rob117 Excel Worksheet Functions 3 May 3rd 07 03:34 PM
how can I select two different values for a cell? Parastoo Parto Excel Worksheet Functions 1 March 9th 05 10:47 AM
Create a drop down in XL cell to select date Steveterrigal Excel Worksheet Functions 1 December 30th 04 03:09 AM


All times are GMT +1. The time now is 02:13 AM.

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"