+ Reply to Thread
Results 1 to 2 of 2

Transform a single date / a few single dates / range of dates into number of days

  1. #1
    Registered User
    Join Date
    02-06-2014
    Location
    Hong Kong
    MS-Off Ver
    Excel 2007
    Posts
    5

    Unhappy Transform a single date / a few single dates / range of dates into number of days

    Within one single cell, content could be a combination as follows:

    Single cell ----------------------- Result (Days)
    01-09 ----------------------- 9
    01,03,04 ----------------------- 3
    1,3,4 ----------------------- 3
    01-09,15,18 ----------------------- 11
    1-9 ----------------------- 9
    1-9,15,18 ----------------------- 11

    Wonder if there are any single formula to obtain the result from one single cell.

    Thank you in advance.
    Last edited by loop1987; 01-16-2018 at 02:10 AM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Transform a single date / a few single dates / range of dates into number of days

    Hi, welcome to the forum

    entries like 01-09 in a single cell are text, not numbers. Excel works best with numbers if the data in a cell is a single number, not a range.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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: 04-06-2016, 07:02 AM
  2. Replies: 4
    Last Post: 06-06-2014, 02:00 PM
  3. Create Date Array with all dates between Min and Max (Single Cell Solution)
    By gus_7475 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-24-2013, 12:36 PM
  4. [SOLVED] Number of Days Between Dates but if no Date go to next and return # of Days
    By Bikeman in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-14-2012, 12:02 PM
  5. [SOLVED] Date Filter based on Cell Input - single date or range of dates
    By babaloo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-23-2012, 10:32 AM
  6. Replies: 2
    Last Post: 04-14-2005, 12:06 AM

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