I have a spreadsheet where I would like to incorporate some automatic editing logic.
For example, let's say in cell A1 I can key a number from 1 to 10. If, however, I key a 1, 2 or 3 in A1, I want to edit that value against whatever is in B1 (which can be "A", "B" or "C"). If B1 = "A", then the only valid value for A1 (from the set of 1, 2 or 3) is 1; if B1 = "B", then A1 must be 2 etc.
I want to be able to key either 1, 2 or 3 in A1 and have it automatically change (if necessary) to the correct value based on what is in B1, thus avoiding an error box from appearing and then rekeying the correct value. If the value is 4 through 10, no such editing (or, perhaps, a different set of edits) should apply.
Does anyone know of a way to accomplish this?
For example, let's say in cell A1 I can key a number from 1 to 10. If, however, I key a 1, 2 or 3 in A1, I want to edit that value against whatever is in B1 (which can be "A", "B" or "C"). If B1 = "A", then the only valid value for A1 (from the set of 1, 2 or 3) is 1; if B1 = "B", then A1 must be 2 etc.
I want to be able to key either 1, 2 or 3 in A1 and have it automatically change (if necessary) to the correct value based on what is in B1, thus avoiding an error box from appearing and then rekeying the correct value. If the value is 4 through 10, no such editing (or, perhaps, a different set of edits) should apply.
Does anyone know of a way to accomplish this?