Results 1 to 6 of 6

Convert data (a bit like a FOREACH?)

Threaded View

  1. #1
    Registered User
    Join Date
    03-03-2016
    Location
    London
    MS-Off Ver
    15
    Posts
    8

    Red face Convert data (a bit like a FOREACH?)

    Hello,

    Keen Excel user here trying to do something a little bit out of his skill set!

    I have a spreadsheet with the info below. Every person will sign up for swimming (23442) but they can then optionally sign up for UP TO 7 other sports. If they have signed up for something else then there will be another entry in the spreadsheet.

    event	userid	username	firstname	lastname
    23442	651	philly	Phil	Smith
    23442	673	wibblewo	David	James
    23442	876	slimtony	Tony	Wilson
    23442	1617	fatboy	Dave	Dee
    29033	1617	fatboy	Dave	Dee
    28985	1617	fatboy	Dave	Dee
    23442	1877	alanantic	Alan	Bob
    28973	1877	alanantic	Alan	Bob
    28838	1877	alanantic	Alan	Bob
    23442	2074	jamesbob	Jayme	Mayer
    23442	9944	Chester	Will	Black
    29201	9944	Chester	Will	Black
    28976	9944	Chester	Will	Black
    29273	9944	Chester	Will	Black
    I need to change the above so that each person is only on one line - something like:

    userid	username	firstname	lastname	event codes
    651	philly	Phil	Smith	23442
    673	wibblewo	David	James	23442
    876	slimtony	Tony	Wilson	23442
    1617	fatboy	Dave	Dee	23442, 29033, 28985
    1877	alanantic	Alan	Bob	23442, 28973, 28838
    2074	jamesbob	Jayme	Mayer	23442
    9944	Chester	Will	Black	23442, 29201, 28976, 29273
    Any help gratefully appreciated! I'm certain I can do it but it's driving me bonkers!

    Thanks
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 3
    Last Post: 09-15-2015, 06:07 AM
  2. Excel 2007 Sumproduct foreach day in column?
    By jrider64 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-29-2015, 02:27 PM
  3. VBA Code convert data to tab delimited and write data to text file | Not Working
    By lbl159 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-07-2015, 06:40 AM
  4. Foreach Name in a List Paste a Template of Cells
    By Codeman553 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-03-2013, 10:25 AM
  5. [SOLVED] Foreach loop lookup between two worksheets
    By asparak in forum Excel General
    Replies: 7
    Last Post: 07-14-2012, 05:03 AM
  6. Replies: 2
    Last Post: 06-25-2012, 12:24 PM
  7. [SOLVED] ForEach statement problem
    By excelnut1954 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-31-2006, 05:40 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