+ Reply to Thread
Results 1 to 19 of 19

Is there a way to gather data from multiple columns and put them into one list?

  1. #1
    Registered User
    Join Date
    03-16-2014
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    9

    Is there a way to gather data from multiple columns and put them into one list?

    I have 3 lists with different student names and a total number of tokens each student has been awarded each week. I would like to know a formula that puts every students name from the 3 list into a single list and in an adjacent column count the total number of token won by each student for all weeks.

    excel forum.jpg

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,628

    Re: Is there a way to gather data from multiple columns and put them into one list?

    Make in column H a list of all student names (you probably have it already - if not, copy all columns A C E in H and remove duplicates - it is located on Data ribbon).
    then in I2 array formula (comitted with Ctrl+Shift+Enter):
    Please Login or Register  to view this content.
    and copy down.

    PS. attached sample workbook is usually worth 100 screenshots :-)
    Best Regards,

    Kaper

  3. #3
    Registered User
    Join Date
    03-16-2014
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Is there a way to gather data from multiple columns and put them into one list?

    I like the (committed with Crtl+Shift+Enter) function. ill have to learn more about it. However, i'm wondering if there is a way to create the student list and remove duplicates automatically. (Without Macros). The picture i attached is only a small example of a much larger list and to copy each column will be difficult.

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Is there a way to gather data from multiple columns and put them into one list?

    Hi,

    Instead of a picture, could you post an actual workbook illustrating what you require?

    Obviously replace any confidential/sensitive information with dummy data if necessary.

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  5. #5
    Registered User
    Join Date
    03-16-2014
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Is there a way to gather data from multiple columns and put them into one list?

    you will have to forgive me ignorance. i have no idea how to add a workbook. I saw the insert picture function and figures that would work.

  6. #6
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Is there a way to gather data from multiple columns and put them into one list?

    Click on Go Advanced and scroll down until you see Manage Attachments.

    Regards

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

    Re: Is there a way to gather data from multiple columns and put them into one list?

    I recorded a macro and assigned it to a button....see if this type of solution will work for you.

    Attachment removed....lost contents on upload.

    Recreated attachment....just to give you an idea.
    Attached Files Attached Files
    Last edited by newdoverman; 03-16-2014 at 07:58 PM.
    <---------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

  8. #8
    Registered User
    Join Date
    03-16-2014
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Is there a way to gather data from multiple columns and put them into one list?

    I Hope this works. So the formula for Column I works and is great but i need to List in column H to be created Automatically since this is only a small sample and the full lists will be very extensive and further columns will be added in future weeks.

    Attachment 304803Attachment 304803

  9. #9
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Is there a way to gather data from multiple columns and put them into one list?

    Hmmm. Invalid attachment?

  10. #10
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Is there a way to gather data from multiple columns and put them into one list?

    There is an example here:

    http://www.excelforum.com/excel-form...ml#post3438143

    See how complicated that formula is?

    If you were able to put the data in a single list something like below, it would be easier by orders of magnitude!

    Data Range
    A
    B
    C
    2
    Week1
    Name1
    76
    3
    Week1
    Name2
    78
    4
    Week1
    Name3
    30
    5
    Week1
    Name4
    13
    6
    Week2
    Name2
    78
    7
    Week2
    Name4
    54
    8
    Week2
    Name1
    69
    9
    Week2
    Name3
    33
    10
    Week3
    Name2
    12
    11
    Week3
    Name4
    9
    12
    Week3
    Name3
    74
    13
    Week3
    Name1
    75
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

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

    Re: Is there a way to gather data from multiple columns and put them into one list?

    The idea is to make the data easy to use and not necessarily pretty. Reports can be pretty and fairly easily created if the data is in an easy to use format like Tony Valko shows.

  12. #12
    Registered User
    Join Date
    03-16-2014
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Is there a way to gather data from multiple columns and put them into one list?

    wow that is complicated. i might just have to get in and do it manually. its a shame cos I feel there should be something there. Its not the first time i've wanted to do something like this. Thanks for all your help.

  13. #13
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Is there a way to gather data from multiple columns and put them into one list?

    something like this?

    the neat "straggle" trick is Tony Valko's.
    - i.s.z -
    CSE, aka Array aka { }, formulae are confirmed with CONTROL+SHIFT+ENTER.
    Replace commas ( , ) with semicolons ( ; ) in formulae, if your locale setting demands.
    All good ideas are courtesy resources from this forum as well as others around the web.
    - e.o.m -

  14. #14
    Registered User
    Join Date
    03-16-2014
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Is there a way to gather data from multiple columns and put them into one list?

    that seems to work actually. I will hopefully use that to get it working in the main workbook. Cheers

  15. #15
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Is there a way to gather data from multiple columns and put them into one list?

    Nice one!

    Here's a slightly different version of the same basic technique that will even work in Excel 2003 and earlier.

    Array entered** in J2:

    =LOOKUP("zzz",CHOOSE({1,2,3,4,5},"",INDEX(List4,MATCH(0,COUNTIF(J$1:J1,List4),0)),INDEX(List3,MATCH(0,COUNTIF(J$1:J1,List3),0)),INDEX(List2,MATCH(0,COUNTIF(J$1:J1,List2),0)),INDEX(List1,MATCH(0,COUNTIF(J$1:J1,List1),0))))

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    Copy down until you get blanks.
    Last edited by Tony Valko; 03-17-2014 at 10:05 AM.

  16. #16
    Registered User
    Join Date
    03-16-2014
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Is there a way to gather data from multiple columns and put them into one list?

    This formula (in Cell J2) works well but how do you get the Array in the Index to say List1, List 2 etc. instead of $A$3:$A$10?

    =IFERROR(IFERROR(IFERROR(IFERROR(INDEX(list1,MATCH(0,COUNTIF($J$1:$J1,list1),0)),INDEX(list2,MATCH(0,COUNTIF($J$1:$J1,list2),0))),INDEX(list3,MATCH(0,COUNTIF($J$1:$J1,list3),0))),INDEX(list4,MATCH(0,COUNTIF($J$1:$J1,list4),0))),"-")

    Pmcca37_997009-gather-data-from-multiple-columns-and-put-them-into-one-list_16mar14_01.xlsx
    Last edited by Pmcca37; 03-18-2014 at 06:04 AM.

  17. #17
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Is there a way to gather data from multiple columns and put them into one list?

    You would create named ranges:

    http://www.contextures.com/xlNames01.html

  18. #18
    Registered User
    Join Date
    03-16-2014
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Is there a way to gather data from multiple columns and put them into one list?

    perfect ty so much

  19. #19
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,628

    Re: Is there a way to gather data from multiple columns and put them into one list?

    If we think about something more universal, may be a macro (as suggested earlier by newdoverman) would be a good concept.
    Below is easy to adopt to different number of weeks example (as a matter of fact, also J2 could be determined automatically, but I left it as a constant here):

    Please Login or Register  to view this content.
    Attached Files Attached Files

  20. #20
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Is there a way to gather data from multiple columns and put them into one list?

    You're welcome. Thanks for the feedback!


    If your question has been solved please mark the thread as being solved.

    In the menu bar above the very first post select Thread Tools, then select Mark this thread as solved.

+ 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] Function to Gather Data from Multiple Sources
    By Office_Worker83 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-25-2012, 01:58 AM
  2. [SOLVED] VBA code to gather data from multiple worksheets in the same folder-Master List
    By lax2734 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-23-2012, 03:07 PM
  3. Replies: 0
    Last Post: 07-27-2011, 01:00 AM
  4. working with multiple worksheets to gather data
    By mrggutz in forum Excel General
    Replies: 4
    Last Post: 03-26-2010, 03:59 PM
  5. Gather data, put in list?
    By greggov in forum Excel General
    Replies: 1
    Last Post: 02-10-2009, 12:51 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