Hi - I'm not sure if what I'm trying to do is possible, but I'm hoping it is. I haven't had any luck searching out an answer so far.
In Brief:
In Excel 2010 I have a sheet where the user selects values in two different validated lists and the first two characters of each selection are concatenated into a third cell. I want to validate the result of this third cell and pop up a Stop error if the concatenation creates an invalid entry.
In Detail:
I have validated lists of Departments and Regions; when the user makes a selection on both lists, their selections are trimmed and concatenated in a third cell to create a Cost Center. For example:
Formula in J12: =IF(H12="(SELECT)","",IF(I9="(SELECT)","",CONCATENATE(LEFT(H12,2),LEFT(I9,2))))
Dept List (cell H12): 10 Accounting, 20 Sales, 30 HR
Region List (cell I9): 01 NW, 02 SW, 03 NE, 04 SE
The user selects from these lists to determine their numerical cost center. For example, selecting '10 Accounting' and '03 NE' will populate the result '1003' in the target cell (J12).
However, I need to be able to validate these populated results, because not all combinations are valid. For example, if a user selected '10 Accounting' and '01 NW' instead of '03 NE' I need a Stop error to occur because there is no Accounting department operating in the NW region so '1001' is not a valid cost center (the user knows this, but selected the wrong region without realizing the mistake).
Currently J12 contains the formula above and has validation applied pointing to a list of valid cost center combinations (I un-checked 'In-cell dropdown' in the validation window because this cell will be locked and the user should not be able to change or select anything in it). I was hoping that when the cell result populated based on user selection in its parent cells, the error would pop up if the result did not match an entry on the validation list. But this is not happening.
I'm not sure this is possible, but if it is, any help will be greatly appreciated.
In Brief:
In Excel 2010 I have a sheet where the user selects values in two different validated lists and the first two characters of each selection are concatenated into a third cell. I want to validate the result of this third cell and pop up a Stop error if the concatenation creates an invalid entry.
In Detail:
I have validated lists of Departments and Regions; when the user makes a selection on both lists, their selections are trimmed and concatenated in a third cell to create a Cost Center. For example:
Formula in J12: =IF(H12="(SELECT)","",IF(I9="(SELECT)","",CONCATENATE(LEFT(H12,2),LEFT(I9,2))))
Dept List (cell H12): 10 Accounting, 20 Sales, 30 HR
Region List (cell I9): 01 NW, 02 SW, 03 NE, 04 SE
The user selects from these lists to determine their numerical cost center. For example, selecting '10 Accounting' and '03 NE' will populate the result '1003' in the target cell (J12).
However, I need to be able to validate these populated results, because not all combinations are valid. For example, if a user selected '10 Accounting' and '01 NW' instead of '03 NE' I need a Stop error to occur because there is no Accounting department operating in the NW region so '1001' is not a valid cost center (the user knows this, but selected the wrong region without realizing the mistake).
Currently J12 contains the formula above and has validation applied pointing to a list of valid cost center combinations (I un-checked 'In-cell dropdown' in the validation window because this cell will be locked and the user should not be able to change or select anything in it). I was hoping that when the cell result populated based on user selection in its parent cells, the error would pop up if the result did not match an entry on the validation list. But this is not happening.
I'm not sure this is possible, but if it is, any help will be greatly appreciated.