+ Reply to Thread
Results 1 to 7 of 7

Taking a list, and Making another list

  1. #1
    Registered User
    Join Date
    01-15-2014
    Location
    Toronto
    MS-Off Ver
    Excel 2010
    Posts
    19

    Post Taking a list, and Making another list

    I am looking for a formula to take a list of teams in row a, and copying them in a list under a month - it would pick the proper team based on their arrival date.

    I have attached a spreadsheet with the worksheet, and the what I am looking the final output to be.

    I am not sure how to get it so the list just continues without spaces - I don't want gaps between team names.

    Any insight would be greatly appreciated.

    Thanks,

    Chuck
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Taking a list, and Making another list

    I used a helper column (C) to create unique ID's for each month. In C2 copied down is

    =TEXT(B2,"mmm")&"_"&SUMPRODUCT(--(LEFT($C$1:$C1,3)=TEXT(B2,"mmm")))+1

    That column can be hidden.

    Then, I changed your headers to match 3 character month abbreviations (i.e. August = Aug)
    and in E2 copied across and down

    =IFERROR(INDEX($A$2:$A$7, MATCH(E$1&"_"&ROWS($A$1:$A1), $C$2:$C$7,0)),"")
    See attachment
    Attached Files Attached Files
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Taking a list, and Making another list

    Without helper columns, enter this ARRAY formula in D2 and fill down and across as required:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

    The key to this formula is matching the months in column B with the column headers. They must match in order for the formula to work. The ranges listed are to accommodate the 30 teams in the NHL.
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  4. #4
    Registered User
    Join Date
    01-15-2014
    Location
    Toronto
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Taking a list, and Making another list

    is it possible to have it so it doesn't match the column headers, but maybe a static field that states the month in it?

  5. #5
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Taking a list, and Making another list

    Quote Originally Posted by cdeguzman View Post
    is it possible to have it so it doesn't match the column headers, but maybe a static field that states the month in it?
    The matching has already been taken care of in the formulae that I used in the solution given. You just don't see it without looking for it.

  6. #6
    Registered User
    Join Date
    01-15-2014
    Location
    Toronto
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Taking a list, and Making another list

    Is it possible to get it so that it works if you skip cells? For example - I have a worksheet that skips lines (formatted for page breaks, and custom top rows) - the file is to big for the site - but if you email me [email protected] i will send you a sheet to show you.

  7. #7
    Registered User
    Join Date
    01-15-2014
    Location
    Toronto
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Taking a list, and Making another list

    Quote Originally Posted by cdeguzman View Post
    Is it possible to get it so that it works if you skip cells? For example - I have a worksheet that skips lines (formatted for page breaks, and custom top rows) - the file is to big for the site - but if you email me [email protected] i will send you a sheet to show you.
    Essentially I have a header after the page break that is different to other pages, and I want to skip those cells and continue on. See attached - The HEADER should be skipped and the "final" tab is what I'd like it to look like.
    Attached Files Attached Files

+ 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] Taking new data from one list and adding it to another list via VBA
    By Michael D in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-11-2014, 06:47 PM
  2. Making a List of Objects Based off Another List
    By Codeman553 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-23-2013, 11:02 AM
  3. [SOLVED] Taking a list of tasks and a list of subtasks and creating a new list with groupings
    By kknb0800 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-06-2012, 12:16 PM
  4. Taking a top 50 list into averages
    By IndieIPA in forum Excel General
    Replies: 6
    Last Post: 03-06-2012, 11:23 AM
  5. Taking Checked off info and making a list
    By dagindi in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-05-2010, 07:04 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