+ Reply to Thread
Results 1 to 3 of 3

Ranking dates inside string

  1. #1
    Registered User
    Join Date
    12-30-2010
    Location
    Indiana, US
    MS-Off Ver
    2007
    Posts
    3

    Ranking dates inside string

    In column "A", each cell is a string like "xxxxxxxxxxxxxxxxxxxxxxx 01/01/13 xxxxxxxxx"

    The date is always nth character from the left so MID accesses it nicely

    in testing I solved using column "B" & "C";

    "B1" = DATEVALUE(MID(A1,nth,8))
    "C1" = COUNTIF(B1:B10,"<=" & B1)

    looking to join the two above, like:
    "D1" = COUNTIF(DATEVALUE(MID(A1:A10,nth,8)),<= DATEVALUE(MID(A1,nth,8)))

    "D1" should = 3 'because its the 3rd oldest of the dates in "A"

  2. #2
    Valued Forum Contributor
    Join Date
    06-17-2009
    Location
    Chennai,India
    MS-Off Ver
    Excel 2003,excel 2007
    Posts
    678

    Re: Ranking dates inside string

    you forgot to say what you want to do. you want to separae date from a string(after n charcters)
    use text to columns -fixed width-put the diviser after n charcters then dates will be in second column
    then sort whole data accordig to date column ascending or descending.
    I am not an expert. better solutions may be available
    [email protected]

  3. #3
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,767

    Re: Ranking dates inside string

    Try this...
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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