Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default MS Query - STANDARD DATE to YEAR-MONTH

Hi,
I am using MS Query to pull some data from an SQL database.

Hopefully someone can help me with a problem thats been bothering me
for some time now.

I have a Tabel containg a field with dates.
This field is in standard date format (European): YYYY-MM-DD

I would like to get this data in the following format: YYYY-MM

I canīt use MS Access, donīt have it at work.

Iīm no superuser when it comes to SQL programing. And there is no
format-settings inside MS Query.

I donīt want to do a reformat in Excel. Becouse I am going to use the
data directly in a PivotTable. And want each transaction month per
month. Instead of day per day has it is now.

Hope someone can help.

Best regards
/Dani



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default MS Query - STANDARD DATE to YEAR-MONTH

Excel will do this for you automatically without converting your data.
See Pivot Table Grouping under help. Be sure when specifying your PT
data range that you have a valid date in every record. You won't get
the date group option if you have a record whose date field is a blank
or a non-date data type.



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/

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
Date(Year,Month,Day) not returnign correct date jlclyde Excel Discussion (Misc queries) 8 October 16th 09 02:42 PM
count month when date is in day/month/year format ccKennedy Excel Worksheet Functions 6 April 30th 09 03:32 AM
=DATE(YEAR(P4),MONTH(P4)+1,1) [email protected] Excel Worksheet Functions 3 January 22nd 09 04:37 PM
Tell me which "season" (Month/Day through Month/Day) a date(Month/Day/Year) falls in (any year)??? misscrf Excel Discussion (Misc queries) 1 December 14th 07 02:59 PM
Sort month/date/year data using month and date only SMW820 Excel Discussion (Misc queries) 6 June 22nd 06 05:14 PM


All times are GMT +1. The time now is 05:06 PM.

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

About Us

"It's about Microsoft Excel"