Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default date format - excluding year

Hello,

I'm having trouble exporting data from Excel to SPSS. I think the problem is
with the format of dates. Excel defaults to dd-mmm-yy, but I don't want to
include year in that column (it goes in a separate column, so I can sort on
year). I keep changing the format to Short Date dd-mmm, but it doesn't seem
to be working.

Any suggestions?

Thanks,

buggirl
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,805
Default date format - excluding year

In Excel you can not have a date without a year. If you just want date and
month then you need to enter them as text.

If you have date in A1 then
=Text(A1,"m") will give you the month
and
=Text(A1,"d") will give you the date

You can use mm, mmm, mon,dd etc as the second argument.

"buggirl" wrote:

Hello,

I'm having trouble exporting data from Excel to SPSS. I think the problem is
with the format of dates. Excel defaults to dd-mmm-yy, but I don't want to
include year in that column (it goes in a separate column, so I can sort on
year). I keep changing the format to Short Date dd-mmm, but it doesn't seem
to be working.

Any suggestions?

Thanks,

buggirl

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default date format - excluding year

Hi.
excel keeps the date all in one number. take todays date 1/6/09 and format
it to general. you'll see 39819. formating turns this number into the many
date formats we see and formating does not change data....it only changes the
way it looks.
if you want to export the date seperated into year then day and month, you
may have to split it before export.
use the text formula.
example...date in A1
=text(A1,"yyyy") for year
=text(A1,"mm/dd") for month/day
you can then copy the formulas and pastespecial as values to turn the
formula into hard data for export.

regards
FSt1
"buggirl" wrote:

Hello,

I'm having trouble exporting data from Excel to SPSS. I think the problem is
with the format of dates. Excel defaults to dd-mmm-yy, but I don't want to
include year in that column (it goes in a separate column, so I can sort on
year). I keep changing the format to Short Date dd-mmm, but it doesn't seem
to be working.

Any suggestions?

Thanks,

buggirl

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default date format - excluding year

That's very useful - thank you both. I'll try fooling around with the text
formula.

cheers,

buggirl

"FSt1" wrote:

Hi.
excel keeps the date all in one number. take todays date 1/6/09 and format
it to general. you'll see 39819. formating turns this number into the many
date formats we see and formating does not change data....it only changes the
way it looks.
if you want to export the date seperated into year then day and month, you
may have to split it before export.
use the text formula.
example...date in A1
=text(A1,"yyyy") for year
=text(A1,"mm/dd") for month/day
you can then copy the formulas and pastespecial as values to turn the
formula into hard data for export.

regards
FSt1
"buggirl" wrote:

Hello,

I'm having trouble exporting data from Excel to SPSS. I think the problem is
with the format of dates. Excel defaults to dd-mmm-yy, but I don't want to
include year in that column (it goes in a separate column, so I can sort on
year). I keep changing the format to Short Date dd-mmm, but it doesn't seem
to be working.

Any suggestions?

Thanks,

buggirl

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
Sorting date fields by month excluding year Alisa Excel Discussion (Misc queries) 1 July 25th 07 09:10 PM
Format date with just month and year Jay3253 Excel Discussion (Misc queries) 6 February 2nd 06 07:17 PM
day/month/year in incorrect format for date format M&A_Jack Excel Worksheet Functions 2 August 16th 05 08:15 PM
Month Year Date Format Jamie Excel Worksheet Functions 2 February 7th 05 06:43 PM
How to get only the year in the date format in Access yanu New Users to Excel 1 January 10th 05 03:50 AM


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