+ Reply to Thread
Results 1 to 2 of 2

expanding dates

  1. #1
    Registered User
    Join Date
    06-20-2014
    Location
    Sudbury, Canada
    MS-Off Ver
    2007
    Posts
    1

    expanding dates

    Hi!

    I have a spread sheet with tens of thousands of products. In the column for products name there is a piece that says "2003 - 2006". This makes searching for products that fall in the years 2004 and 2005 very difficult. I would like to expand these dates so that hyphens are replaced with the in-between dates.

    E.g. "2003 - 2006" becomes 2003 2004 2005 2006.

    Is there some automatic way of expanding these dates? Doing it manually would take forever!

    Is this possible?

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: expanding dates

    try this

    In B1 and pull formula to the right

    =IF(LEFT($A1,4)+COLUMNS($A1:A1)-1>RIGHT($A1,4)+0,"",LEFT($A1,4)+COLUMNS($A1:A1)-1)

    A
    B
    C
    D
    E
    1
    2003 - 2006
    2003
    2004
    2005
    2006
    Last edited by AlKey; 07-24-2014 at 12:14 PM.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

+ 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. Self Expanding Graphs
    By par0016 in forum Excel General
    Replies: 3
    Last Post: 04-27-2012, 01:28 PM
  2. Expanding Data
    By Kypsis in forum Excel General
    Replies: 1
    Last Post: 03-04-2011, 05:20 PM
  3. Expanding Chart
    By leem in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-09-2010, 09:48 AM
  4. Expanding list
    By Rawb77 in forum Excel General
    Replies: 2
    Last Post: 11-17-2009, 12:05 PM
  5. expanding a start date and end date to show all the dates in a list
    By musicman in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-20-2005, 04:05 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