+ Reply to Thread
Results 1 to 4 of 4

Convert table with number ranges to numbers on each line

  1. #1
    Registered User
    Join Date
    01-19-2014
    Location
    Hamilton, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    27

    Convert table with number ranges to numbers on each line

    Hello,
    I have this table with a list of day ranges and factors. It starts out with a single day, but then switches to ranges like 3 - 7, with a factor in the next column. Just looking for an easy way to put each day number on it's own line with the associated factor. Please see attached and it will be very clear what I'm trying to do.
    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: Convert table with number ranges to numbers on each line

    You can put the heading "start" in C1 and this formula in C2:

    =IF(ISNUMBER(A2),A2,--LEFT(A2,FIND("-",A2)-2))

    Copy this down to the bottom of your data - it will give you the start day for each range. Then you can use this formula in cell G2:

    =INDEX(B:B,MATCH(F2,C:C))

    Copy this down as far as you need.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    01-19-2014
    Location
    Hamilton, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: Convert table with number ranges to numbers on each line

    Great solution! Thank you very much!

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: Convert table with number ranges to numbers on each line

    Glad it worked for you - thanks for the rep.

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post in this thread, and mark the thread as SOLVED.

    Pete

+ 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. [SOLVED] How do I convert a table with individual dates to a table with date ranges?
    By frankt68 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-29-2021, 08:58 AM
  2. Replies: 10
    Last Post: 10-31-2019, 11:33 AM
  3. Search for Line Number between Ranges
    By jharvey87 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-16-2017, 07:16 PM
  4. Maximum number of ranges in an Excel 2010 line graph?
    By Carrfamily in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 03-31-2015, 04:47 PM
  5. [SOLVED] Convert number-ranges to sequence of numbers (e.g. 142-145 to 142, 143, 144, 145)
    By roderh in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 01-27-2015, 12:54 PM
  6. Replies: 1
    Last Post: 12-15-2014, 08:46 PM
  7. Replies: 2
    Last Post: 12-01-2011, 09:19 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