+ Reply to Thread
Results 1 to 3 of 3

Formula and dates

  1. #1
    Registered User
    Join Date
    07-18-2006
    Posts
    27

    Unhappy Formula and dates

    Hi im trying to do something that I though would be pretty simple, but is complicated by the way excel handles dates.

    In a column I have formatted Dates like this...

    12/05/04
    13/02/05
    18/02/05
    14/08/05

    etc

    In the column along side I simple want...

    0504
    0205
    0205
    0805

    Previously Ive just used a format to change it to MMYY, however when that is put into a pivot table, the pivot table seperates the same data, and it still recognises the entire date.

    So in the pivot table I end up with duplicates.

    Ive tried using the following code

    =IF(A2="","",MID(A2,3,2))

    To retrieve the date, but all I get is the raw number excel uses to store dates IE 38777, instead of 01/03/06, therefore ending up with 77 and not 03.

    I hope I havent over complicated this questions, all I need is the month and the year!

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Try

    =TEXT(A2,"mmyy")

  3. #3
    Registered User
    Join Date
    07-18-2006
    Posts
    27
    Perfect thanks alot

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1