+ Reply to Thread
Results 1 to 3 of 3

Count number of dates values in each cell and retain larger value only

  1. #1
    Forum Contributor
    Join Date
    09-20-2014
    Location
    India
    MS-Off Ver
    2013
    Posts
    275

    Question Count number of dates values in each cell and retain larger value only

    Dear all,
    I have a column with multiple data values in each cell.
    Count of date values varies from 1 to 7 max.
    I need a code to retain only maximum of these date values in each cell and delete rest.

    Please note: Date values are separated with single spaces and colon as well.

    2016/05/25
    2016/05/25,2016/05/25
    2016/05/25 2016/05/25
    2016/05/25 2016/05/25
    2016/05/25 2016/05/25
    2016/05/24 2016/05/24 2016/05/24 2016/06/07,2016/06/07
    2016/04/28 2016/04/28 2016/05/12
    2016/04/28,2016/04/28
    2016/04/28,2016/04/28
    2016/04/28 2016/04/28

    Please help to improve my logic in these kind of cases.
    Thanks

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: Count number of dates values in each cell and retain larger value only

    Just use text to columns and then use max function on each row
    Ben Van Johnson

  3. #3
    Forum Contributor
    Join Date
    09-20-2014
    Location
    India
    MS-Off Ver
    2013
    Posts
    275

    Re: Count number of dates values in each cell and retain larger value only

    Is it not possible to achieve using VBA code..?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 03-06-2016, 12:23 PM
  2. [SOLVED] Count number times same value is present in a single Row of a larger range.
    By ManinOZ in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 08-25-2015, 05:42 AM
  3. Remove duplicate number values but retain text value via vba
    By kosherboy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-07-2015, 03:42 PM
  4. Replies: 5
    Last Post: 03-27-2015, 08:07 AM
  5. Replies: 10
    Last Post: 10-09-2014, 08:06 PM
  6. Count Number Of Dates In Same Cell Between Two Dates
    By yoshi_5 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-23-2012, 11:24 AM
  7. delete a number within larger number in a cell?
    By John1023 in forum Excel General
    Replies: 3
    Last Post: 02-28-2006, 03:20 PM

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