Hello All,
This is my fist post here so please accept my apologies if this doesn't followthe usual format for asking questions.
I have a worksheet which I use to monitor staff holidays and plan resourcesaccordingly. Part of this sheet is a table with a list of about 50 staff on theleft and the dates for the year across the top. In this table managers willenter annual leave etc to enable them to plan ahead, but also to keep a recordof this leave. In a simplified form it is laid out as per the example below.
[TABLE="width: 718"]
<tbody>[TR]
[TD="width: 80, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E6B8B7]#E6B8B7[/URL] "]A1
[/TD]
[TD="width: 63, bgcolor: transparent, align: right"]1/1/20
[/TD]
[TD="width: 63, bgcolor: transparent, align: right"]2/1/20
[/TD]
[TD="width: 63, bgcolor: transparent, align: right"]3/1/20
[/TD]
[TD="width: 63, bgcolor: transparent, align: right"]4/1/20
[/TD]
[TD="width: 63, bgcolor: transparent, align: right"]5/1/20
[/TD]
[TD="width: 63, bgcolor: transparent, align: right"]6/1/20
[/TD]
[TD="width: 63, bgcolor: transparent, align: right"]7/1/20
[/TD]
[TD="width: 63, bgcolor: transparent, align: right"]8/1/20
[/TD]
[TD="width: 63, bgcolor: transparent, align: right"]9/1/20
[/TD]
[TD="width: 63, bgcolor: transparent, align: right"]10/1/20
[/TD]
[TD="width: 63, bgcolor: transparent, align: right"]11/1/20
[/TD]
[TD="width: 63, bgcolor: transparent, align: right"]12/1/20
[/TD]
[TD="width: 63, bgcolor: transparent, align: right"]13/1/20
[/TD]
[TD="width: 63, bgcolor: transparent, align: right"]14/1/20
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]John
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"]AL
[/TD]
[TD="bgcolor: transparent"]AL
[/TD]
[TD="bgcolor: transparent"]AL
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: #92D050"]R
[/TD]
[TD="bgcolor: #92D050"]R
[/TD]
[TD="bgcolor: #92D050"]R
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Dave
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"]AL
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: #92D050"]R
[/TD]
[TD="bgcolor: #92D050"]R
[/TD]
[TD="bgcolor: #92D050"]R
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"]LD
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Fred
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"]AL
[/TD]
[TD="bgcolor: transparent"]AL
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: #92D050"]R
[/TD]
[TD="bgcolor: #92D050"]R
[/TD]
[TD="bgcolor: #92D050"]R
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"]LD
[/TD]
[TD="bgcolor: transparent"]AL
[/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Tom
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"]LD
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: #92D050"]R
[/TD]
[TD="bgcolor: #92D050"]R
[/TD]
[TD="bgcolor: #92D050"]R
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"]AL
[/TD]
[TD="bgcolor: transparent"]AL
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Harry
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: #92D050"]R
[/TD]
[TD="bgcolor: #92D050"]R
[/TD]
[TD="bgcolor: #92D050"]R
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"]LD
[/TD]
[TD="bgcolor: transparent"]AL
[/TD]
[TD="bgcolor: transparent"]AL
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
</tbody>[/TABLE]
This all works fine from dropdowns and populates the restof the sheet regarding resources etc
The problem is exporting this data should member of staff wish to seetheir records as we cannot show them the main sheet due to data protection asthey would also be viewing other staff members details.
What I would like to do is have a separate worksheet within the workbook whereI can select the staff members name from a dropdown and it will show a table orlist of what they have taken throughout the year and have booked in advancealready. This would need to be displayed something like the example below. Itwill also need to ignore certain codes such as "R" in the aboveexample as the sheet would be much too large to make any kind of senseotherwise.
[TABLE="width: 308"]
<tbody>[TR]
[TD="width: 62, bgcolor: transparent"]Name
[/TD]
[TD="width: 114, bgcolor: transparent"]Fred
[/TD]
[TD="width: 233, bgcolor: transparent"]<selected font="" list<="" down="" drop="" a="" from=""></selected>
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Date
[/TD]
[TD="bgcolor: transparent"]Code
[/TD]
[TD="bgcolor: transparent"]Details
[/TD]
[/TR]
[TR]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E6B8B7]#E6B8B7[/URL] , align: right"]3/1/20
[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E6B8B7]#E6B8B7[/URL] "]AL
[/TD]
[TD="bgcolor: transparent"]Anual Leave
[/TD]
[/TR]
[TR]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E6B8B7]#E6B8B7[/URL] , align: right"]4/1/20
[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E6B8B7]#E6B8B7[/URL] "]AL
[/TD]
[TD="bgcolor: transparent"]Anual Leave
[/TD]
[/TR]
[TR]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E6B8B7]#E6B8B7[/URL] , align: right"]12/1/20
[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E6B8B7]#E6B8B7[/URL] "]LD
[/TD]
[TD="bgcolor: transparent"]Lieu Day
[/TD]
[/TR]
[TR]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E6B8B7]#E6B8B7[/URL] , align: right"]13/1/20
[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E6B8B7]#E6B8B7[/URL] "]AL
[/TD]
[TD="bgcolor: transparent"]Anual Leave
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"]/\
[/TD]
[TD="bgcolor: transparent"]/\
[/TD]
[/TR]
[TR]
[TD="width: 176, bgcolor: transparent, colspan: 2"]This is the issue populating the information into these two columns
[/TD]
[TD="width: 233, bgcolor: transparent"]This bit is fine, as long as I can populate column 1 and 2
[/TD]
[/TR]
</tbody>[/TABLE]
I have tried to get to grips with index match but am notsure I am getting the syntax correct or even if this would be the correct wayforward.
Hopefully there is a simple solution to this and I look forward to any help anyof you can offer as I a currently stumped.
Thanks in advance
This is my fist post here so please accept my apologies if this doesn't followthe usual format for asking questions.
I have a worksheet which I use to monitor staff holidays and plan resourcesaccordingly. Part of this sheet is a table with a list of about 50 staff on theleft and the dates for the year across the top. In this table managers willenter annual leave etc to enable them to plan ahead, but also to keep a recordof this leave. In a simplified form it is laid out as per the example below.
[TABLE="width: 718"]
<tbody>[TR]
[TD="width: 80, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E6B8B7]#E6B8B7[/URL] "]A1
[/TD]
[TD="width: 63, bgcolor: transparent, align: right"]1/1/20
[/TD]
[TD="width: 63, bgcolor: transparent, align: right"]2/1/20
[/TD]
[TD="width: 63, bgcolor: transparent, align: right"]3/1/20
[/TD]
[TD="width: 63, bgcolor: transparent, align: right"]4/1/20
[/TD]
[TD="width: 63, bgcolor: transparent, align: right"]5/1/20
[/TD]
[TD="width: 63, bgcolor: transparent, align: right"]6/1/20
[/TD]
[TD="width: 63, bgcolor: transparent, align: right"]7/1/20
[/TD]
[TD="width: 63, bgcolor: transparent, align: right"]8/1/20
[/TD]
[TD="width: 63, bgcolor: transparent, align: right"]9/1/20
[/TD]
[TD="width: 63, bgcolor: transparent, align: right"]10/1/20
[/TD]
[TD="width: 63, bgcolor: transparent, align: right"]11/1/20
[/TD]
[TD="width: 63, bgcolor: transparent, align: right"]12/1/20
[/TD]
[TD="width: 63, bgcolor: transparent, align: right"]13/1/20
[/TD]
[TD="width: 63, bgcolor: transparent, align: right"]14/1/20
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]John
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"]AL
[/TD]
[TD="bgcolor: transparent"]AL
[/TD]
[TD="bgcolor: transparent"]AL
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: #92D050"]R
[/TD]
[TD="bgcolor: #92D050"]R
[/TD]
[TD="bgcolor: #92D050"]R
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Dave
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"]AL
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: #92D050"]R
[/TD]
[TD="bgcolor: #92D050"]R
[/TD]
[TD="bgcolor: #92D050"]R
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"]LD
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Fred
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"]AL
[/TD]
[TD="bgcolor: transparent"]AL
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: #92D050"]R
[/TD]
[TD="bgcolor: #92D050"]R
[/TD]
[TD="bgcolor: #92D050"]R
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"]LD
[/TD]
[TD="bgcolor: transparent"]AL
[/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Tom
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"]LD
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: #92D050"]R
[/TD]
[TD="bgcolor: #92D050"]R
[/TD]
[TD="bgcolor: #92D050"]R
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"]AL
[/TD]
[TD="bgcolor: transparent"]AL
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Harry
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: #92D050"]R
[/TD]
[TD="bgcolor: #92D050"]R
[/TD]
[TD="bgcolor: #92D050"]R
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"]LD
[/TD]
[TD="bgcolor: transparent"]AL
[/TD]
[TD="bgcolor: transparent"]AL
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
</tbody>[/TABLE]
This all works fine from dropdowns and populates the restof the sheet regarding resources etc
The problem is exporting this data should member of staff wish to seetheir records as we cannot show them the main sheet due to data protection asthey would also be viewing other staff members details.
What I would like to do is have a separate worksheet within the workbook whereI can select the staff members name from a dropdown and it will show a table orlist of what they have taken throughout the year and have booked in advancealready. This would need to be displayed something like the example below. Itwill also need to ignore certain codes such as "R" in the aboveexample as the sheet would be much too large to make any kind of senseotherwise.
[TABLE="width: 308"]
<tbody>[TR]
[TD="width: 62, bgcolor: transparent"]Name
[/TD]
[TD="width: 114, bgcolor: transparent"]Fred
[/TD]
[TD="width: 233, bgcolor: transparent"]<selected font="" list<="" down="" drop="" a="" from=""></selected>
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Date
[/TD]
[TD="bgcolor: transparent"]Code
[/TD]
[TD="bgcolor: transparent"]Details
[/TD]
[/TR]
[TR]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E6B8B7]#E6B8B7[/URL] , align: right"]3/1/20
[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E6B8B7]#E6B8B7[/URL] "]AL
[/TD]
[TD="bgcolor: transparent"]Anual Leave
[/TD]
[/TR]
[TR]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E6B8B7]#E6B8B7[/URL] , align: right"]4/1/20
[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E6B8B7]#E6B8B7[/URL] "]AL
[/TD]
[TD="bgcolor: transparent"]Anual Leave
[/TD]
[/TR]
[TR]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E6B8B7]#E6B8B7[/URL] , align: right"]12/1/20
[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E6B8B7]#E6B8B7[/URL] "]LD
[/TD]
[TD="bgcolor: transparent"]Lieu Day
[/TD]
[/TR]
[TR]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E6B8B7]#E6B8B7[/URL] , align: right"]13/1/20
[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E6B8B7]#E6B8B7[/URL] "]AL
[/TD]
[TD="bgcolor: transparent"]Anual Leave
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"]/\
[/TD]
[TD="bgcolor: transparent"]/\
[/TD]
[/TR]
[TR]
[TD="width: 176, bgcolor: transparent, colspan: 2"]This is the issue populating the information into these two columns
[/TD]
[TD="width: 233, bgcolor: transparent"]This bit is fine, as long as I can populate column 1 and 2
[/TD]
[/TR]
</tbody>[/TABLE]
I have tried to get to grips with index match but am notsure I am getting the syntax correct or even if this would be the correct wayforward.
Hopefully there is a simple solution to this and I look forward to any help anyof you can offer as I a currently stumped.
Thanks in advance