Hi I was wondering if anyone can provide some guidance with a problem I'm having.
I'm currently attempting to create a sheet to track staff leave from a table which is to be used as a default, but editable by user with a drop down.
So far I'm managed to use a nested vlookup and Hlookup to transfer data across between tables, but can't figure out how to add in the drop down when attempting to use the data validation element.
Perhaps easier with a few tables to explain:
This is the table i'm wanting to populate - called 'leave'
[TABLE="width: 500"]
<tbody>[TR]
[TD]Date[/TD]
[TD]01/12/2017[/TD]
[TD]02/12/2017[/TD]
[TD]03/12/2017[/TD]
[TD]04/12/2017[/TD]
[TD]05/12/2017[/TD]
[TD]06/12/2017[/TD]
[/TR]
[TR]
[TD]Day[/TD]
[TD]Friday[/TD]
[TD]Saturday[/TD]
[TD]Sunday[/TD]
[TD]Monday[/TD]
[TD]Tuesday[/TD]
[TD]Wednesday[/TD]
[/TR]
[TR]
[TD]TM1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]TM2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
This is the default table value I want to use - called staff:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Date[/TD]
[TD]01/12/2017[/TD]
[TD]02/12/2017[/TD]
[TD]03/12/2017[/TD]
[TD]04/12/2017[/TD]
[TD]05/12/2017[/TD]
[TD]06/12/2017[/TD]
[/TR]
[TR]
[TD]Column[/TD]
[TD]2[/TD]
[TD]3[/TD]
[TD]4[/TD]
[TD]5[/TD]
[TD]6[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]TM1[/TD]
[TD]1[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]0.5[/TD]
[TD]1[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]TM2[/TD]
[TD]NWD[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]NWD[/TD]
[TD]0.8[/TD]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]
This is the list of Drop downs I wish to add to 'Leave' - called Hours
[TABLE="width: 500"]
<tbody>[TR]
[TD]NWD[/TD]
[/TR]
[TR]
[TD]0[/TD]
[/TR]
[TR]
[TD]0.5[/TD]
[/TR]
[TR]
[TD]0.8[/TD]
[/TR]
[TR]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]
Sorry, thats a lot of text.
Table - staff - populates using drop downs, so far so good.
Table - leave - has the following nested lookup =VLOOKUP($A4,'Staff list'!$A$3:$H$62,HLOOKUP(B$3,'Staff list'!$A$1:$H$2,2,FALSE),FALSE) which populates the 'leave' table based on the 'staff' table, however, i want the 'leave' table to also include a drop down feature so that if there are changes to the standard week worked, these can be edited by user but within the defined limits of the 'Hours' table.
Unfortunately I've drawn a complete blank, I'm pretty sure I need to use the custom formula option in data validation but its not as straight forward as I would have hoped.
Unfortunately VBA isn't an option for me with this one either as i've absolutely no knowledge of VBA at present, nor do the intended users.
Please can anyone help? Thank you in advance.
Rob.
I'm currently attempting to create a sheet to track staff leave from a table which is to be used as a default, but editable by user with a drop down.
So far I'm managed to use a nested vlookup and Hlookup to transfer data across between tables, but can't figure out how to add in the drop down when attempting to use the data validation element.
Perhaps easier with a few tables to explain:
This is the table i'm wanting to populate - called 'leave'
[TABLE="width: 500"]
<tbody>[TR]
[TD]Date[/TD]
[TD]01/12/2017[/TD]
[TD]02/12/2017[/TD]
[TD]03/12/2017[/TD]
[TD]04/12/2017[/TD]
[TD]05/12/2017[/TD]
[TD]06/12/2017[/TD]
[/TR]
[TR]
[TD]Day[/TD]
[TD]Friday[/TD]
[TD]Saturday[/TD]
[TD]Sunday[/TD]
[TD]Monday[/TD]
[TD]Tuesday[/TD]
[TD]Wednesday[/TD]
[/TR]
[TR]
[TD]TM1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]TM2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
This is the default table value I want to use - called staff:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Date[/TD]
[TD]01/12/2017[/TD]
[TD]02/12/2017[/TD]
[TD]03/12/2017[/TD]
[TD]04/12/2017[/TD]
[TD]05/12/2017[/TD]
[TD]06/12/2017[/TD]
[/TR]
[TR]
[TD]Column[/TD]
[TD]2[/TD]
[TD]3[/TD]
[TD]4[/TD]
[TD]5[/TD]
[TD]6[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]TM1[/TD]
[TD]1[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]0.5[/TD]
[TD]1[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]TM2[/TD]
[TD]NWD[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]NWD[/TD]
[TD]0.8[/TD]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]
This is the list of Drop downs I wish to add to 'Leave' - called Hours
[TABLE="width: 500"]
<tbody>[TR]
[TD]NWD[/TD]
[/TR]
[TR]
[TD]0[/TD]
[/TR]
[TR]
[TD]0.5[/TD]
[/TR]
[TR]
[TD]0.8[/TD]
[/TR]
[TR]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]
Sorry, thats a lot of text.
Table - staff - populates using drop downs, so far so good.
Table - leave - has the following nested lookup =VLOOKUP($A4,'Staff list'!$A$3:$H$62,HLOOKUP(B$3,'Staff list'!$A$1:$H$2,2,FALSE),FALSE) which populates the 'leave' table based on the 'staff' table, however, i want the 'leave' table to also include a drop down feature so that if there are changes to the standard week worked, these can be edited by user but within the defined limits of the 'Hours' table.
Unfortunately I've drawn a complete blank, I'm pretty sure I need to use the custom formula option in data validation but its not as straight forward as I would have hoped.
Unfortunately VBA isn't an option for me with this one either as i've absolutely no knowledge of VBA at present, nor do the intended users.
Please can anyone help? Thank you in advance.
Rob.