#1   Report Post  
Posted to microsoft.public.excel.misc
Jim Jim is offline
external usenet poster
 
Posts: 615
Default Cell Validation

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 364
Default Cell Validation

"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   Report Post  
Posted to microsoft.public.excel.misc
Jim Jim is offline
external usenet poster
 
Posts: 615
Default Cell Validation

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Validation Data using Validation Table cell range..... Dermot Excel Discussion (Misc queries) 16 January 5th 10 09:35 PM
In Cell Validation List & Linked Cell VLOOKUP BEEZ Excel Discussion (Misc queries) 7 July 1st 07 07:17 PM
Data Validation: Store cell address instead of value in the cell? WillW Excel Discussion (Misc queries) 1 January 31st 07 02:22 AM
Validation for a cell Freshman Excel Worksheet Functions 2 August 19th 05 06:15 AM
Cell Validation Simon Shaw Excel Discussion (Misc queries) 5 March 3rd 05 11:51 PM


All times are GMT +1. The time now is 01:53 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"