+ Reply to Thread
Results 1 to 5 of 5

Thread: Table Value Multiplay Formula

  1. #1
    Registered User
    Join Date
    10-08-2008
    Location
    Serbia
    Posts
    4

    Table Value Multiplay Formula

    I have a small problem here. I have worksheet with some data as on image 1

    http://www.excelforum.com/attachment...1&d=1223465953

    and I want a formula/function/code that can make data to look like on image 2

    http://www.excelforum.com/attachment...1&d=1223465953

    Any help will be appreciated

    Thanks in advance
    Attached Images Attached Images
    Last edited by Johny Smith; 10-08-2008 at 09:43 AM. Reason: Moderator warning

  2. #2
    Forum Guru darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Colorado, US
    MS-Off Ver
    2007
    Posts
    2,170
    Welcome to the forum. Please read the forum rules about posting a good thread title. If I assume that you want these people to appear in groups of 4, then you can use this in B1, dragged across and down: =OFFSET($A$1,MAX(0,ROUNDDOWN((ROW()-1)/4,0)*4)+COLUMN()-2,0)

  3. #3
    Registered User
    Join Date
    10-08-2008
    Location
    Serbia
    Posts
    4

    Table Value Multiplay Formula

    I wish to each person appear from every group in first column next to that group where that person belong. Number of persons in groups is different and it's for example from 2 to 10. In example on images are only two groups with 3 and 4 persons, but I have more than 1000 different groups.
    Last edited by Johny Smith; 10-08-2008 at 09:56 AM. Reason: Exemplify

  4. #4
    Valued Forum Contributor MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    888
    Hi, I'm not sure if I'm suppose to reply , alhough someone else has.
    Anyway !, It took some time to write so you might as well have it.
    You Data starts "A2" on , Results in "a2" on
    NB:-This code will overwritew your Data.
    Dim Ray(), Last As Integer, Dn As Integer, Pst As Integer
    Dim LstA As Integer, Hoz
    
    Last = Range("A" & Rows.Count).End(xlUp).Row
    ReDim Ray(1 To Last)
    
    For Dn = 2 To Last
        Ray(Dn) = Range(Range("A" & Dn), Cells(Dn, Columns.Count).End(xlToLeft))
    Next Dn
     
     Range(Range("A2"), Range("A" & Rows.Count).End(xlUp)).Resize(, 15).ClearContents
    
    For Pst = 2 To Last
            LstA = Range("A" & Rows.Count).End(xlUp).Row + 1
            Range("A" & LstA & ":A" & LstA + UBound(Ray(Pst), 2) - 1).Value = Application.Transpose(Ray(Pst))
        For Hoz = LstA To LstA + UBound(Ray(Pst), 2) - 1
            Range(Cells(Hoz, "A"), Cells(Hoz, UBound(Ray(Pst), 2))).Offset(, 1).Value = Ray(Pst)
        Next Hoz
    Next Pst
    Regards Mick

  5. #5
    Forum Guru darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Colorado, US
    MS-Off Ver
    2007
    Posts
    2,170
    Yeah, I had responded before it was in red.

+ 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. Outlook data to Excel worksheet using Vista
    By Quaestrix in forum Excel Programming
    Replies: 1
    Last Post: 08-18-2008, 03:31 AM
  2. Excel opens without blank worksheet
    By Eggplant in forum Excel General
    Replies: 2
    Last Post: 08-15-2008, 04:52 PM
  3. Update Access database through changes in Excel worksheet
    By munkayboi in forum Excel Programming
    Replies: 1
    Last Post: 07-31-2007, 07:16 PM
  4. Inserting linked images into Excel 2003 worksheet
    By ferrell in forum Excel General
    Replies: 1
    Last Post: 04-19-2007, 09:29 PM
  5. Import Specific Data from Another Excel Worksheet
    By NewExcelUser in forum Excel Programming
    Replies: 5
    Last Post: 12-08-2006, 06:49 AM

Tags for this Thread

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.2.0