Lightkeepr
New Member
- Joined
- Apr 6, 2021
- Messages
- 27
- Office Version
- 365
- Platform
- Windows
I have two tables, one for time entry and the other lists pay amounts.
On the first table I want to be able to enter a code in Code column that is data validated against the unique range in the second sheet (which currently works great). Where I am getting hung up is when it comes to the Class column on the first table. I want to have that be data validated against the codes table based on what code is in the previous cell.
So if Code 002 is used, in the Class column I only get 'Asst Boss' or 'Manager' as options to pick from.
Once both those values are picked, the rates for RT, OT and DT are used from the Codes table in the Time Table in their respective columns.
I thought about trying to use the filter function but couldn't get it to work in data validation rules and without building a bunch of other tables that would have to be manually tweaked if I added more to the Codes table, I am lost on what I am trying to do would be called to read up on it and learn how to solve this.
Book1 | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | |||
2 | Name | Code | Class | RT Hours | OT Hours | DT Hours | RT Pay | OT Pay | DT Pay | Total | ||
3 | Joe | 001 | 20.0 | $ - | ||||||||
4 | Jane | 002 | 10.0 | $ - | ||||||||
Time |
Cell Formulas | ||
---|---|---|
Range | Formula | |
J3:J4 | J3 | =([@[RT Hours]]*[@[RT Pay]])+([@[OT Hours]]*[@[OT Pay]])+([@[DT Hours]]*[@[DT Pay]]) |
Cells with Data Validation | ||
---|---|---|
Cell | Allow | Criteria |
B3:B4 | List | =codes |
Book1 | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | |||
3 | CODE | Classification | RT | OT | DT | Unique Codes List | ||||
4 | 001 | Boss | $ 10.00 | $ 15.00 | $ 20.00 | 001 | ||||
5 | 002 | Asst Boss | $ 9.00 | $ 13.50 | $ 18.00 | 002 | ||||
6 | 002 | Manager | $ 8.00 | $ 12.00 | $ 16.00 | 003 | ||||
7 | 003 | Employee | $ 7.00 | $ 10.50 | $ 14.00 | |||||
8 | ||||||||||
Codes |
Cell Formulas | ||
---|---|---|
Range | Formula | |
G4:G6 | G4 | =TEXT(UNIQUE(Table1[CODE],FALSE,FALSE),"000") |
Dynamic array formulas. |
On the first table I want to be able to enter a code in Code column that is data validated against the unique range in the second sheet (which currently works great). Where I am getting hung up is when it comes to the Class column on the first table. I want to have that be data validated against the codes table based on what code is in the previous cell.
So if Code 002 is used, in the Class column I only get 'Asst Boss' or 'Manager' as options to pick from.
Once both those values are picked, the rates for RT, OT and DT are used from the Codes table in the Time Table in their respective columns.
I thought about trying to use the filter function but couldn't get it to work in data validation rules and without building a bunch of other tables that would have to be manually tweaked if I added more to the Codes table, I am lost on what I am trying to do would be called to read up on it and learn how to solve this.