I have four cells on a worksheet which are related to each other, and I'm attempting to add some rules to keep them properly connected depending on what users may enter into one of the cells. I should mention that I have the complete rules posted here, but the fellow who was helping me out there has not been able to continue doing so due to his busy life, so I am trying to get this figured out one cell at a time.
Cell D1 is the main cell which controls all the others. This is how I need to get it set up:
‘D1’ CELL RULES:
1. The D1 cell may never contain a dash. An error message must appear to prevent this from being entered if anyone ever tries to do so. Anything else may be entered.
2. When the D1 cell receives data, this is what must happen with the A1 cell:
The A1 cell must receive the value from the D1 cell followed by a ‘-1’ - UNLESS the A1 cell ALREADY CONTAINS a ‘-X’ value where ‘X’ is a number LARGER THAN 1. If the A1 cell does contain a ‘-’ followed by a number greater than 1, an error message must appear and the D1 cell may not receive the data.
If the B1 and C1 cells ALREADY contain data, the values preceding their ‘-X’s must be changed to match the data just entered in the D1 cell as well.
EXAMPLE: D1 cell receives 12345. If the A1 cell contains 54321, then the A1 cell changes to 12345-1. If the A1 cell contains 54321-2, an error message appears to prevent 12345 from being entered into the D1 cell. If the B1 cell contains 54321-2 and the D1 cell receives 12345, the B1 cell updates to 12345-2.
3. When the D1 cell is cleared, then the '-1' must be removed from the value in the A1 cell, and any data in the B1 and C1 cells must be completely cleared.
EXAMPLE: D1 cell contained 12345 and was cleared. If the A1 cell contains 12345-1, then the A1 cell changes to 12345. If the B1 cell contains 12345-2 and the C1 cell contains 12345-3, they both clear.
Please see the attached workbook for more examples and clarity. Thanks so much for any help!
Bookmarks