+ Reply to Thread
Results 1 to 5 of 5

Create range of numbers on one row from incrementing numbers on multiple rows

  1. #1
    Registered User
    Join Date
    10-11-2013
    Location
    -
    MS-Off Ver
    Excel 2010
    Posts
    20

    Create range of numbers on one row from incrementing numbers on multiple rows

    Hello,

    I would like to ask for help on the following issue:
    The following table is given:

    flower 20 rose
    flower 21 rose
    flower 22 rose
    flower 31 blossom
    flower 32 blossom
    tree 1 apple
    tree 2 apple
    tree 3 apple

    Which needs to be turned into:
    flower 20 22 rose
    flower 31 32 blossom
    tree 1 3 apple

    The last column is the one that dictates when a new range of numbers start. There should be one range of numbers for Rose, One range for Blossom etc.

    Could you please give me some help regarding this issue ?
    I should have learned VBA until now but i've started learning PHP instead.

    Thank you.

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Create range of numbers on one row from incrementing numbers on multiple rows

    How about letting a pivot table do the work for you?

    I put your data in cells B3:D11, assigning headings and skipping the blank column:
    Please Login or Register  to view this content.
    I converted that range into an Excel Table (Because they're so easy to work with)
    • Select the data range
    • Home.Format_as_table....follow the prompts

    Then I created a pivot table, based on the Excel Table.
    • Row Labels:
    ...Category
    ...Type
    Values:
    Seq
    Seq <-yes, I used Seq twice

    Set the 1st seq formula to MIN
    Set the 2nd seq formula to MAX
    ...Use the Classic Display
    ...Remove subtotals and the grand total

    This will be the result:
    Please Login or Register  to view this content.
    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    10-11-2013
    Location
    -
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Create range of numbers on one row from incrementing numbers on multiple rows

    Hello Ron,

    Thank you for the tutorial, this is a very good solution.
    Could you please tell me: is there a quick way to display the "Category" instead of the blank cells ? I know this feature is included in Excel 2010 but i haven't found it in Excel 2007.

    Thank you.

  4. #4
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Create range of numbers on one row from incrementing numbers on multiple rows

    Unfortunately, no. (Unless "Copy/Paste_Special.Values...Edit the cells" is an acceptable option)
    Excel 2007, IMHO, is an incomplete thought. Excel 2010 and Excel 2013 are definitely better.

  5. #5
    Registered User
    Join Date
    10-11-2013
    Location
    -
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Create range of numbers on one row from incrementing numbers on multiple rows

    Hello,

    Alright, i'll look into Excel 2010. Thank you very much for your support.

    Good night.

+ 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. Create Incrementing Numbers
    By JohanCoetzer in forum Excel Programming / VBA / Macros
    Replies: 23
    Last Post: 03-07-2012, 04:55 AM
  2. Incrementing Reference Numbers
    By SamuelT in forum Excel General
    Replies: 2
    Last Post: 03-11-2009, 07:52 AM
  3. incrementing account numbers
    By John in forum Excel General
    Replies: 6
    Last Post: 03-10-2006, 10:50 AM
  4. [SOLVED] Incrementing numbers
    By Floyd107 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-28-2006, 06:10 AM
  5. Table of incrementing by one numbers
    By brbarto in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 12-19-2005, 11: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