+ Reply to Thread
Results 1 to 3 of 3

Creating a list of years from a set of numbers.

  1. #1
    Registered User
    Join Date
    08-08-2012
    Location
    San Diego, California
    MS-Off Ver
    Excel 2010
    Posts
    4

    Creating a list of years from a set of numbers.

    I'm looking for a way to create a consecutive list of numbers in the same row of a set of numbers given in column A.

    Here is an example of the data and how I would like it would look like

    Data before:
    ..........Column A - Column B - Column C - Column D - Column E - Column F
    Row 1 5-9
    Row 2 6-9
    Row 3 4-5
    Row 4 20-24


    Data after
    ..........Column A - Column B - Column C - Column D - Column E - Column F
    Row 1 5-9.............5............6.............7.................8............9
    Row 2 6-9.............6............7.............8.................9
    Row 3 4-5.............4............5
    Row 4 20-24...........20...........21...........22.............. 23...........24

    Any help will be great! Thanks
    Last edited by Dkmuas; 08-08-2012 at 07:57 PM.

  2. #2
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Creating a list of years from a set of numbers.

    hello look at this one.

    create numbers.xlsx

    in B1=--TRIM(LEFT($A1,FIND("-",$A1)-1)) -- drag down

    in C1 =IF(B1>(--TRIM(RIGHT($A1,FIND("-",$A1)-1)))-1,"",B1+1) drag to the right-->>> then down..
    hth.
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  3. #3
    Registered User
    Join Date
    08-08-2012
    Location
    San Diego, California
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Creating a list of years from a set of numbers.

    Thanks vlandy! This will help me a lot.

+ 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