I am trying to come up with a way to limit the number of codes ("V", "VC" and "P/H") that can be entered on the following vacation calendar. This is to prevent from going over the allocations provided below.
Vacation
<tbody>
[TD="bgcolor: #CACACA, align: center"]1
[/TD]
[TD="bgcolor: #CACACA, align: center"]2
[/TD]
[TD="bgcolor: #CACACA, align: center"]3
[/TD]
[TD="align: center"]2012
[/TD]
[TD="bgcolor: #CACACA, align: center"]4
[/TD]
[TD="bgcolor: #FFCC00, align: center"]Month/Day
[/TD]
[TD="bgcolor: #CCCCFF, align: center"]Jan
[/TD]
[TD="bgcolor: #CCCCFF, align: center"]Feb
[/TD]
[TD="bgcolor: #CCCCFF, align: center"]Mar
[/TD]
[TD="bgcolor: #CCCCFF, align: center"]Apr
[/TD]
[TD="bgcolor: #CCCCFF, align: center"]May
[/TD]
[TD="bgcolor: #CACACA, align: center"]5
[/TD]
[TD="align: center"]1
[/TD]
[TD="bgcolor: #FFFF00"]*
[/TD]
[TD="bgcolor: #FFFF00"]*
[/TD]
[TD="bgcolor: #CACACA, align: center"]6
[/TD]
[TD="align: center"]2
[/TD]
[TD="bgcolor: #FF99CC, align: center"]H
[/TD]
[TD="bgcolor: #CACACA, align: center"]7
[/TD]
[TD="align: center"]3
[/TD]
[TD="bgcolor: #FFFF00"]*
[/TD]
[TD="bgcolor: #CACACA, align: center"]8
[/TD]
[TD="align: center"]4
[/TD]
[TD="bgcolor: #FFFF00"]*
[/TD]
[TD="bgcolor: #FFFF00"]*
[/TD]
[TD="bgcolor: #CACACA, align: center"]9
[/TD]
[TD="align: center"]5
[/TD]
[TD="bgcolor: #FFFF00"]*
[/TD]
[TD="bgcolor: #FFFF00"]*
[/TD]
[TD="bgcolor: #CACACA, align: center"]10
[/TD]
[TD="align: center"]6
[/TD]
[TD="bgcolor: #FFFF00"]*
[/TD]
[TD="bgcolor: #CACACA, align: center"]11
[/TD]
[TD="align: center"]7
[/TD]
[TD="bgcolor: #FFFF00"]*
[/TD]
[TD="bgcolor: #FFFF00"]*
[/TD]
[TD="bgcolor: #CACACA, align: center"]12
[/TD]
[TD="align: center"]8
[/TD]
[TD="bgcolor: #FFFF00"]*
[/TD]
[TD="bgcolor: #FFFF00"]*
[/TD]
[TD="bgcolor: #CACACA, align: center"]13
[/TD]
[TD="align: center"]9
[/TD]
[TD="bgcolor: #CACACA, align: center"]14
[/TD]
[TD="align: center"]10
[/TD]
[TD="bgcolor: #FFFF00"]*
[/TD]
[TD="bgcolor: #CACACA, align: center"]15
[/TD]
[TD="align: center"]11
[/TD]
[TD="bgcolor: #FFFF00"]*
[/TD]
[TD="bgcolor: #FFFF00"]*
[/TD]
[TD="bgcolor: #CACACA, align: center"]16
[/TD]
[TD="align: center"]12
[/TD]
[TD="bgcolor: #FFFF00"]*
[/TD]
[TD="bgcolor: #FFFF00"]*
[/TD]
[TD="bgcolor: #CACACA, align: center"]17
[/TD]
[TD="align: center"]13
[/TD]
[TD="bgcolor: #FFFF00"]*
[/TD]
[TD="bgcolor: #CACACA, align: center"]18
[/TD]
[TD="align: center"]14
[/TD]
[TD="bgcolor: #FFFF00"]*
[/TD]
[TD="bgcolor: #FFFF00"]*
[/TD]
[TD="bgcolor: #CACACA, align: center"]19
[/TD]
[TD="align: center"]15
[/TD]
[TD="bgcolor: #FFFF00"]*
[/TD]
[TD="bgcolor: #FFFF00"]*
[/TD]
[TD="bgcolor: #CACACA, align: center"]20
[/TD]
[TD="align: center"]16
[/TD]
</tbody>
<tbody>
</tbody>
Vacation
<tbody>
[TD="bgcolor: #CACACA, align: center"]40
[/TD]
[TD="align: center"]20
[/TD]
[TD="align: left"]Total Personal Holidays Provided at Start:
[/TD]
[TD="align: center"]1
[/TD]
[TD="bgcolor: #CACACA, align: center"]41
[/TD]
[TD="bgcolor: #CACACA, align: center"]42
[/TD]
[TD="align: center"]3
[/TD]
[TD="align: left"]Total Days Vac at Beginning of 2012
[/TD]
[TD="align: center"]24
[/TD]
[TD="bgcolor: #CACACA, align: center"]43
[/TD]
[TD="bgcolor: #CACACA, align: center"]44
[/TD]
[TD="bgcolor: #CACACA, align: center"]45
[/TD]
[TD="align: right"]1
[/TD]
[TD="align: left"]P/H
[/TD]
[TD="align: right"]23
[/TD]
[TD="align: left"]V
[/TD]
</tbody>
<tbody>
</tbody>
Excel tables to the web >> http://www.excel-jeanie-html.de/index.php?f=1" target="_blank"> Excel Jeanie HTML 4
So for example, if the limit of Vacation carryover is 3, then I should only be allowed to enter three "VC" entries anywhere in the entire table. The same should be true for Vacation "V" days and personal days "P/H" for their respective allotments.
The DV I came up with still allows more than the allotment until all three are exceeded.
Vacation
* | B | C | D | E | F | G |
Vacation Schedule | * | * | * | * | * | |
* | * | * | * | * | * | |
Year: | * | * | * | * | ||
* | * | * | ||||
* | * | * | * | |||
* | * | * | * | |||
* | * | * | ||||
* | * | * | ||||
* | * | * | * | |||
* | * | * | ||||
* | * | * | ||||
* | * | * | * | * | ||
* | * | * | * | |||
* | * | * | ||||
* | * | * | ||||
* | * | * | * | |||
* | * | * | ||||
* | * | * | ||||
* | * | * | * | * |
<tbody>
[TD="bgcolor: #CACACA, align: center"]1
[/TD]
[TD="bgcolor: #CACACA, align: center"]2
[/TD]
[TD="bgcolor: #CACACA, align: center"]3
[/TD]
[TD="align: center"]2012
[/TD]
[TD="bgcolor: #CACACA, align: center"]4
[/TD]
[TD="bgcolor: #FFCC00, align: center"]Month/Day
[/TD]
[TD="bgcolor: #CCCCFF, align: center"]Jan
[/TD]
[TD="bgcolor: #CCCCFF, align: center"]Feb
[/TD]
[TD="bgcolor: #CCCCFF, align: center"]Mar
[/TD]
[TD="bgcolor: #CCCCFF, align: center"]Apr
[/TD]
[TD="bgcolor: #CCCCFF, align: center"]May
[/TD]
[TD="bgcolor: #CACACA, align: center"]5
[/TD]
[TD="align: center"]1
[/TD]
[TD="bgcolor: #FFFF00"]*
[/TD]
[TD="bgcolor: #FFFF00"]*
[/TD]
[TD="bgcolor: #CACACA, align: center"]6
[/TD]
[TD="align: center"]2
[/TD]
[TD="bgcolor: #FF99CC, align: center"]H
[/TD]
[TD="bgcolor: #CACACA, align: center"]7
[/TD]
[TD="align: center"]3
[/TD]
[TD="bgcolor: #FFFF00"]*
[/TD]
[TD="bgcolor: #CACACA, align: center"]8
[/TD]
[TD="align: center"]4
[/TD]
[TD="bgcolor: #FFFF00"]*
[/TD]
[TD="bgcolor: #FFFF00"]*
[/TD]
[TD="bgcolor: #CACACA, align: center"]9
[/TD]
[TD="align: center"]5
[/TD]
[TD="bgcolor: #FFFF00"]*
[/TD]
[TD="bgcolor: #FFFF00"]*
[/TD]
[TD="bgcolor: #CACACA, align: center"]10
[/TD]
[TD="align: center"]6
[/TD]
[TD="bgcolor: #FFFF00"]*
[/TD]
[TD="bgcolor: #CACACA, align: center"]11
[/TD]
[TD="align: center"]7
[/TD]
[TD="bgcolor: #FFFF00"]*
[/TD]
[TD="bgcolor: #FFFF00"]*
[/TD]
[TD="bgcolor: #CACACA, align: center"]12
[/TD]
[TD="align: center"]8
[/TD]
[TD="bgcolor: #FFFF00"]*
[/TD]
[TD="bgcolor: #FFFF00"]*
[/TD]
[TD="bgcolor: #CACACA, align: center"]13
[/TD]
[TD="align: center"]9
[/TD]
[TD="bgcolor: #CACACA, align: center"]14
[/TD]
[TD="align: center"]10
[/TD]
[TD="bgcolor: #FFFF00"]*
[/TD]
[TD="bgcolor: #CACACA, align: center"]15
[/TD]
[TD="align: center"]11
[/TD]
[TD="bgcolor: #FFFF00"]*
[/TD]
[TD="bgcolor: #FFFF00"]*
[/TD]
[TD="bgcolor: #CACACA, align: center"]16
[/TD]
[TD="align: center"]12
[/TD]
[TD="bgcolor: #FFFF00"]*
[/TD]
[TD="bgcolor: #FFFF00"]*
[/TD]
[TD="bgcolor: #CACACA, align: center"]17
[/TD]
[TD="align: center"]13
[/TD]
[TD="bgcolor: #FFFF00"]*
[/TD]
[TD="bgcolor: #CACACA, align: center"]18
[/TD]
[TD="align: center"]14
[/TD]
[TD="bgcolor: #FFFF00"]*
[/TD]
[TD="bgcolor: #FFFF00"]*
[/TD]
[TD="bgcolor: #CACACA, align: center"]19
[/TD]
[TD="align: center"]15
[/TD]
[TD="bgcolor: #FFFF00"]*
[/TD]
[TD="bgcolor: #FFFF00"]*
[/TD]
[TD="bgcolor: #CACACA, align: center"]20
[/TD]
[TD="align: center"]16
[/TD]
</tbody>
Data Validation in Spreadsheet | |||||||||||||||||||||||||||||||||||
<tbody> </tbody> |
<tbody>
</tbody>
Vacation
* | B | C | D | E | F | G | H | I | J | K | L | M |
Total Vacation Days Provided at Start: | * | * | * | * | * | * | * | * | ||||
* | * | * | * | * | * | * | * | * | * | * | * | |
2011 Vacation Days Carryover: | * | * | * | * | * | * | * | * | ||||
* | * | * | * | * | * | * | * | * | * | * | * | |
* | * | * | * | * | * | * | * | * | * | * | * | |
Total Days Remaining YTD: | * | * | * | * | * | * | * |
<tbody>
[TD="bgcolor: #CACACA, align: center"]40
[/TD]
[TD="align: center"]20
[/TD]
[TD="align: left"]Total Personal Holidays Provided at Start:
[/TD]
[TD="align: center"]1
[/TD]
[TD="bgcolor: #CACACA, align: center"]41
[/TD]
[TD="bgcolor: #CACACA, align: center"]42
[/TD]
[TD="align: center"]3
[/TD]
[TD="align: left"]Total Days Vac at Beginning of 2012
[/TD]
[TD="align: center"]24
[/TD]
[TD="bgcolor: #CACACA, align: center"]43
[/TD]
[TD="bgcolor: #CACACA, align: center"]44
[/TD]
[TD="bgcolor: #CACACA, align: center"]45
[/TD]
[TD="align: right"]1
[/TD]
[TD="align: left"]P/H
[/TD]
[TD="align: right"]23
[/TD]
[TD="align: left"]V
[/TD]
</tbody>
Spreadsheet Formulas | ||||||||||||||||||
<tbody> </tbody> |
<tbody>
</tbody>
Excel tables to the web >> http://www.excel-jeanie-html.de/index.php?f=1" target="_blank"> Excel Jeanie HTML 4
So for example, if the limit of Vacation carryover is 3, then I should only be allowed to enter three "VC" entries anywhere in the entire table. The same should be true for Vacation "V" days and personal days "P/H" for their respective allotments.
The DV I came up with still allows more than the allotment until all three are exceeded.