Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default How to? Date Function

I have a date in a table that is in the format 20080620. (Year Month Day all
together). Is it possbile to make execl convert this into a format I could
use in the DAY360 function?

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default How to? Date Function

With your date in cell A1
=DATE(VALUE(LEFT(A1, 4)), VALUE(MID(A1, 5, 2)), VALUE(RIGHT(A1, 2)))
--
HTH...

Jim Thomlinson


"NervousFred" wrote:

I have a date in a table that is in the format 20080620. (Year Month Day all
together). Is it possbile to make execl convert this into a format I could
use in the DAY360 function?

Thanks!

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,651
Default How to? Date Function

On Thu, 17 Jul 2008 13:23:05 -0700, NervousFred
wrote:

I have a date in a table that is in the format 20080620. (Year Month Day all
together). Is it possbile to make execl convert this into a format I could
use in the DAY360 function?

Thanks!


Data/Text to Columns and select YMD for the format of that column.
--ron
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default How to? Date Function

Ron-

How do I get to the menu to change that specific column's options in 07 excel?




"Ron Rosenfeld" wrote:

On Thu, 17 Jul 2008 13:23:05 -0700, NervousFred
wrote:

I have a date in a table that is in the format 20080620. (Year Month Day all
together). Is it possbile to make execl convert this into a format I could
use in the DAY360 function?

Thanks!


Data/Text to Columns and select YMD for the format of that column.
--ron

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default How to? Date Function

This won't work becuase the table I am using is imported data.

"Jim Thomlinson" wrote:

With your date in cell A1
=DATE(VALUE(LEFT(A1, 4)), VALUE(MID(A1, 5, 2)), VALUE(RIGHT(A1, 2)))
--
HTH...

Jim Thomlinson


"NervousFred" wrote:

I have a date in a table that is in the format 20080620. (Year Month Day all
together). Is it possbile to make execl convert this into a format I could
use in the DAY360 function?

Thanks!



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default How to? Date Function

Just relized more of waht you said....diregard my earlier message

"NervousFred" wrote:

This won't work becuase the table I am using is imported data.

"Jim Thomlinson" wrote:

With your date in cell A1
=DATE(VALUE(LEFT(A1, 4)), VALUE(MID(A1, 5, 2)), VALUE(RIGHT(A1, 2)))
--
HTH...

Jim Thomlinson


"NervousFred" wrote:

I have a date in a table that is in the format 20080620. (Year Month Day all
together). Is it possbile to make execl convert this into a format I could
use in the DAY360 function?

Thanks!

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default How to? Date Function

Worked like a charm thanks!

"Jim Thomlinson" wrote:

With your date in cell A1
=DATE(VALUE(LEFT(A1, 4)), VALUE(MID(A1, 5, 2)), VALUE(RIGHT(A1, 2)))
--
HTH...

Jim Thomlinson


"NervousFred" wrote:

I have a date in a table that is in the format 20080620. (Year Month Day all
together). Is it possbile to make execl convert this into a format I could
use in the DAY360 function?

Thanks!

  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default How to? Date Function

Without formulas...................

DataText to ColumnsNextNextColumn data formatDateYMDFinish


Gord Dibben MS Excel MVP

On Fri, 18 Jul 2008 08:22:01 -0700, NervousFred
wrote:

Worked like a charm thanks!

"Jim Thomlinson" wrote:

With your date in cell A1
=DATE(VALUE(LEFT(A1, 4)), VALUE(MID(A1, 5, 2)), VALUE(RIGHT(A1, 2)))
--
HTH...

Jim Thomlinson


"NervousFred" wrote:

I have a date in a table that is in the format 20080620. (Year Month Day all
together). Is it possbile to make execl convert this into a format I could
use in the DAY360 function?

Thanks!


  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,651
Default How to? Date Function

On Fri, 18 Jul 2008 07:41:01 -0700, NervousFred
wrote:

Ron-

How do I get to the menu to change that specific column's options in 07 excel?




If you have the default ribbon setup:

1. Select Data from the top menu bar.
2. Select "Text to Columns" -- just to the right of center, in the Data Tools
section.

That brings up the Convert Text to Columns wizard; Step 1 of 3
<Next -- Step 2 of 3
be sure it is not splitting the column
<Next -- Step 3 of 3
be sure your column is selected.
Column Data Format
select Date and then, from the drop-down, YMD
<Finish



--ron
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
Function to lookup date on tab in excel and populate date on calen MGC Excel Worksheet Functions 0 February 4th 10 04:48 AM
Difference betwen Excel Date () Function and System Date Khalil[_2_] Excel Worksheet Functions 2 June 16th 09 01:10 PM
Function Excel:If a Dateactual date create a RED alert in a cel? Claudio Nacif Excel Programming 1 June 4th 07 04:00 AM
Date Function formula that will return the date of a specific week Greg Excel Worksheet Functions 4 June 12th 06 05:07 PM
Calculating days between current date and a date in future NETWORKDAYS() function Faheem Khan Excel Worksheet Functions 2 February 10th 05 07:18 PM


All times are GMT +1. The time now is 09:28 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"