How to? Date Function

  • Thread starter Thread starter NervousFred
  • Start date Start date
N

NervousFred

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!
 
With your date in cell A1
=DATE(VALUE(LEFT(A1, 4)), VALUE(MID(A1, 5, 2)), VALUE(RIGHT(A1, 2)))
 
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
 
Ron-

How do I get to the menu to change that specific column's options in 07 excel?
 
Just relized more of waht you said....diregard my earlier message
 
Worked like a charm thanks!

Jim Thomlinson said:
With your date in cell A1
=DATE(VALUE(LEFT(A1, 4)), VALUE(MID(A1, 5, 2)), VALUE(RIGHT(A1, 2)))
 
Without formulas...................

Data>Text to Columns>Next>Next>Column data format>Date>YMD>Finish


Gord Dibben MS Excel MVP
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top