Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have a cell (D11) validated to a list named Jnl that has two choices , Job
& Ledger. When Ledger is selected in D11, cell E11 validates to a list of several codes named LedgerList. When Job is selected from the validation list D11, cell F11 shows a list of only two codes from a list named CAT. I use the formula =IF(D11="Ledger",LedgerList," ") as the validation for E11 and =IF(D11="Job",CAT,"") for F11. The validation will not display "" ,or blank, when the Acc Type is changed. The last selected code remains. Is there a better way to have E11 display a blank (empty) when the Acc Type is changed to Job in D11 and allow the selection of the CAT list in F11 and visa-versa? |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Your validation works the way you want it for me in XL97.
-- HTH Sandy In Perth, the ancient capital of Scotland and the crowning place of kings Replace @mailinator.com with @tiscali.co.uk "Jim" wrote in message ... I have a cell (D11) validated to a list named Jnl that has two choices , Job & Ledger. When Ledger is selected in D11, cell E11 validates to a list of several codes named LedgerList. When Job is selected from the validation list D11, cell F11 shows a list of only two codes from a list named CAT. I use the formula =IF(D11="Ledger",LedgerList," ") as the validation for E11 and =IF(D11="Job",CAT,"") for F11. The validation will not display "" ,or blank, when the Acc Type is changed. The last selected code remains. Is there a better way to have E11 display a blank (empty) when the Acc Type is changed to Job in D11 and allow the selection of the CAT list in F11 and visa-versa? |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
"Jim" wrote in message
... I have a cell (D11) validated to a list named Jnl that has two choices , Job & Ledger. When Ledger is selected in D11, cell E11 validates to a list of several codes named LedgerList. When Job is selected from the validation list D11, cell F11 shows a list of only two codes from a list named CAT. I use the formula =IF(D11="Ledger",LedgerList," ") as the validation for E11 and =IF(D11="Job",CAT,"") for F11. The validation will not display "" ,or blank, when the Acc Type is changed. The last selected code remains. Is there a better way to have E11 display a blank (empty) when the Acc Type is changed to Job in D11 and allow the selection of the CAT list in F11 and visa-versa? I'm not quite sure I understand, but I think the following comment may be helpful to you. Data validation works only at the instant you enter data into a cell. It is not a "live" thing, like the formulas in cells (assuming calculation is set to automatic). So, if a cell has data validation applied, Excel will check the data is valid as it is being entered. But, if data elsewhere changes such that it subsequently becomes "invalid", nothing will happen at that point - the data as previously entered will remain. If I read your requirements correctly, I think you will need an "intermediate" cell with data validation (based on LedgerList). You could then have a simple IF formula in D11 to select between this and "" depending on what is selected in D11. (You would repeat all of this with suitable adjustments to derive E11.) As far as I can see, you cannot successfully do the data validation and selection in one cell. |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thanks for your comments.
I had arrived a much the same conclusion. I will set it up as an empty template so the order of precidence should ensure that the first choice excludes the second and will be blank as default. Cheers Jim "Stephen" wrote: "Jim" wrote in message ... I have a cell (D11) validated to a list named Jnl that has two choices , Job & Ledger. When Ledger is selected in D11, cell E11 validates to a list of several codes named LedgerList. When Job is selected from the validation list D11, cell F11 shows a list of only two codes from a list named CAT. I use the formula =IF(D11="Ledger",LedgerList," ") as the validation for E11 and =IF(D11="Job",CAT,"") for F11. The validation will not display "" ,or blank, when the Acc Type is changed. The last selected code remains. Is there a better way to have E11 display a blank (empty) when the Acc Type is changed to Job in D11 and allow the selection of the CAT list in F11 and visa-versa? I'm not quite sure I understand, but I think the following comment may be helpful to you. Data validation works only at the instant you enter data into a cell. It is not a "live" thing, like the formulas in cells (assuming calculation is set to automatic). So, if a cell has data validation applied, Excel will check the data is valid as it is being entered. But, if data elsewhere changes such that it subsequently becomes "invalid", nothing will happen at that point - the data as previously entered will remain. If I read your requirements correctly, I think you will need an "intermediate" cell with data validation (based on LedgerList). You could then have a simple IF formula in D11 to select between this and "" depending on what is selected in D11. (You would repeat all of this with suitable adjustments to derive E11.) As far as I can see, you cannot successfully do the data validation and selection in one cell. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Validation Data using Validation Table cell range..... | Excel Discussion (Misc queries) | |||
In Cell Validation List & Linked Cell VLOOKUP | Excel Discussion (Misc queries) | |||
Data Validation: Store cell address instead of value in the cell? | Excel Discussion (Misc queries) | |||
Validation for a cell | Excel Worksheet Functions | |||
Cell Validation | Excel Discussion (Misc queries) |