2011gerry007
Member
Hi,
And thanks for taking the time to look![Smile :) :)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
I have a spreadsheet with one column... (F) that contains various different session times for each person for any given day. So for the first session I may have 20 peoples names attending on each row with the session time, (I already have the vba to insert 2X blank lines at each session value/time change).
What I would like to be able to do is get rid of all the 20 duplicate times that are beside each name/Record and just have as one instance and all the people name for that session below that session time
So basically strip the column(F) and have sub headers each session which can be up to 40 in one day, and that way I can delete the column (F) of the values
vba wise . Does anyone know the best way on how I could go about getting unique values from one column (aside from the header) and using some sort of loop ...say distinct values and put each session as a sub header at each line break?
apologies but can't see where an upload icon is for my sample sheet .
What i have .....Below...
Session Times
08:30 - 11:30
08:30 - 11:30
08:30 - 11:30
08:30 - 11:30
08:30 - 11:30
08:30 - 11:30
08:30 - 11:30
08:30 - 11:30
08:45 - 09:45
08:45 - 09:45
08:45 - 09:45
10:00 - 11:00
10:00 - 11:00
11:00 -12:00
11:00 -12:00
11:00 -12:00
12:00 - 13:00
12:00 - 13:00
12:00 - 13:00
12:00 - 13:00
12:00 - 13:00
12:00 - 13:00
12:00 - 13:00
12:00 - 13:00
12:00 - 13:00
12:00 - 13:00
12:00 - 13:00
12:00 - 13:00
12:00 - 13:00
12:00 - 13:00
12:00 - 13:00
12:00 - 13:00
12:00 - 13:00
12:00 - 13:00
12:00 - 13:00
What i like
Session Times = 08:30 - 11:30
TmGone Name
9:52 PM John Gardener01
10:52 PM John Gardener02
11:52 PM John Gardener03
12:52 AM John Gardener04
1:52 AM John Gardener05
2:52 AM John Gardener06
3:52 AM John Gardener07
4:52 AM John Gardener08
Session Times = 08:45 - 09:45
9:20 AM Timmy Jones005
9:40 AM Timmy Jones006
9:42 AM Timmy Jones007
Session Times = 10:00 - 11:00
Fred West 05
Fred West 06
Session Times = 11:00 -12:00
Jimmy Smith01
Jimmy Smith02
Jimmy Smith03
Session Times =12:00 - 13:00
Tony. McCussack04
Tony. McCussack05
Tony. McCussack06
Tony. McCussack07
Tony. McCussack08
Tony. McCussack09
Tony. McCussack10
Tony. McCussack11
Tony. McCussack12
Tony. McCussack13
Tony. McCussack14
Tony. McCussack15
Tony. McCussack16
Tony. McCussack17
Tony. McCussack18
Tony. McCussack19
Tony. McCussack20
Tony. McCussack21
Tony. McCussack22
And thanks for taking the time to look
I have a spreadsheet with one column... (F) that contains various different session times for each person for any given day. So for the first session I may have 20 peoples names attending on each row with the session time, (I already have the vba to insert 2X blank lines at each session value/time change).
What I would like to be able to do is get rid of all the 20 duplicate times that are beside each name/Record and just have as one instance and all the people name for that session below that session time
So basically strip the column(F) and have sub headers each session which can be up to 40 in one day, and that way I can delete the column (F) of the values
vba wise . Does anyone know the best way on how I could go about getting unique values from one column (aside from the header) and using some sort of loop ...say distinct values and put each session as a sub header at each line break?
apologies but can't see where an upload icon is for my sample sheet .
What i have .....Below...
Session Times
08:30 - 11:30
08:30 - 11:30
08:30 - 11:30
08:30 - 11:30
08:30 - 11:30
08:30 - 11:30
08:30 - 11:30
08:30 - 11:30
08:45 - 09:45
08:45 - 09:45
08:45 - 09:45
10:00 - 11:00
10:00 - 11:00
11:00 -12:00
11:00 -12:00
11:00 -12:00
12:00 - 13:00
12:00 - 13:00
12:00 - 13:00
12:00 - 13:00
12:00 - 13:00
12:00 - 13:00
12:00 - 13:00
12:00 - 13:00
12:00 - 13:00
12:00 - 13:00
12:00 - 13:00
12:00 - 13:00
12:00 - 13:00
12:00 - 13:00
12:00 - 13:00
12:00 - 13:00
12:00 - 13:00
12:00 - 13:00
12:00 - 13:00
What i like
Session Times = 08:30 - 11:30
TmGone Name
9:52 PM John Gardener01
10:52 PM John Gardener02
11:52 PM John Gardener03
12:52 AM John Gardener04
1:52 AM John Gardener05
2:52 AM John Gardener06
3:52 AM John Gardener07
4:52 AM John Gardener08
Session Times = 08:45 - 09:45
9:20 AM Timmy Jones005
9:40 AM Timmy Jones006
9:42 AM Timmy Jones007
Session Times = 10:00 - 11:00
Fred West 05
Fred West 06
Session Times = 11:00 -12:00
Jimmy Smith01
Jimmy Smith02
Jimmy Smith03
Session Times =12:00 - 13:00
Tony. McCussack04
Tony. McCussack05
Tony. McCussack06
Tony. McCussack07
Tony. McCussack08
Tony. McCussack09
Tony. McCussack10
Tony. McCussack11
Tony. McCussack12
Tony. McCussack13
Tony. McCussack14
Tony. McCussack15
Tony. McCussack16
Tony. McCussack17
Tony. McCussack18
Tony. McCussack19
Tony. McCussack20
Tony. McCussack21
Tony. McCussack22
Last edited: