Welcome to the { mindfrost82.com } forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > MS Office > Excel

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-19-2008, 07:03 AM
AltaEgo
 
Posts: n/a
Data validation - complex listbox

Hi

I have a need for data validation in which list entries are reduce when used
anywhere in a pair of rows. However, each entry in the list should remain
useable in the following pair of rows until used there, etc, etc.

Example

List
Cat
Cow
Dog
Bat


R1 Cat Cow
R2 Dog Bat
R3 Cat Dog
R4 Cow
R5
R6 Cat
R7
R8

Cat would only be available in rows 7&8
Cat, Cow, Dog, Bat would not be available in Rows 1 &2
Bat would be available in rows 3-8
Cow, Dog, Bat would be available in rows 5&6
All would be available in rows 7&8

Is someone able to wind me up and point me in the right direction?

--
Steve

Reply With Quote
  #2 (permalink)  
Old 05-19-2008, 07:42 PM
RagDyer
 
Posts: n/a
Re: Data validation - complex listbox

See if this starts you in the right direction:

http://www.contextures.com/xlDataVal03.html
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"AltaEgo" <Somewhere@NotHere> wrote in message
news:OhFOXYXuIHA.524@TK2MSFTNGP05.phx.gbl...
> Hi
>
> I have a need for data validation in which list entries are reduce when
> used anywhere in a pair of rows. However, each entry in the list should
> remain useable in the following pair of rows until used there, etc, etc.
>
> Example
>
> List
> Cat
> Cow
> Dog
> Bat
>
>
> R1 Cat Cow
> R2 Dog Bat
> R3 Cat Dog
> R4 Cow
> R5
> R6 Cat
> R7
> R8
>
> Cat would only be available in rows 7&8
> Cat, Cow, Dog, Bat would not be available in Rows 1 &2
> Bat would be available in rows 3-8
> Cow, Dog, Bat would be available in rows 5&6
> All would be available in rows 7&8
>
> Is someone able to wind me up and point me in the right direction?
>
> --
> Steve



Reply With Quote
  #3 (permalink)  
Old 05-20-2008, 12:42 AM
AltaEgo
 
Posts: n/a
Re: Data validation - complex listbox

Thank you...I think

Hmmm, if I transpose the dynamic list formula; don't anchor the defined name
to a set row; space my pairs of rows with a blank in between and repeat the
dynamic list every third row... Fat, slow workbook?

OK, not as elegant as the original concept but how about letting the user
sort out what has or has not been used with some scratching of the head
(list sorted in alphabetical order) and use conditional formatting that
highlights duplicates '=COUNTIF($D$2:$N$3,D2)>1'.

Revised question, How do I turn the above idea for conditional formatting
into something like the following so it actually works when copied to other
cells?

=COUNTIF($D$ & row() & :$N$ & row()+1 & ,D2)>1

--
Steve

"RagDyer" <ragdyer@cutoutmsn.com> wrote in message
news:#o1u3AeuIHA.672@TK2MSFTNGP02.phx.gbl...
> See if this starts you in the right direction:
>
> http://www.contextures.com/xlDataVal03.html
> --
> HTH,
>
> RD
>
> ---------------------------------------------------------------------------
> Please keep all correspondence within the NewsGroup, so all may benefit !
> ---------------------------------------------------------------------------
>
> "AltaEgo" <Somewhere@NotHere> wrote in message
> news:OhFOXYXuIHA.524@TK2MSFTNGP05.phx.gbl...
>> Hi
>>
>> I have a need for data validation in which list entries are reduce when
>> used anywhere in a pair of rows. However, each entry in the list should
>> remain useable in the following pair of rows until used there, etc, etc.
>>
>> Example
>>
>> List
>> Cat
>> Cow
>> Dog
>> Bat
>>
>>
>> R1 Cat Cow
>> R2 Dog Bat
>> R3 Cat Dog
>> R4 Cow
>> R5
>> R6 Cat
>> R7
>> R8
>>
>> Cat would only be available in rows 7&8
>> Cat, Cow, Dog, Bat would not be available in Rows 1 &2
>> Bat would be available in rows 3-8
>> Cow, Dog, Bat would be available in rows 5&6
>> All would be available in rows 7&8
>>
>> Is someone able to wind me up and point me in the right direction?
>>
>> --
>> Steve

>
>

Reply With Quote
  #4 (permalink)  
Old 05-20-2008, 02:28 AM
AltaEgo
 
Posts: n/a
Re: Data validation - complex listbox

OTOH

Calling the following from Worksheet Change together with a few other pieces
of code to resort the list to be continuous and not move the cursor of the
user enters a name manually is working a treat.


Sub RemoveFromList()
Dim valToRemove
valToRemove = Selection.Value

Range("a:A").Replace What:=valToRemove, _
Replacement:="", LookAt:=xlPart, MatchCase:=False

End Sub

All that is left is to write some code to rebuild the lookup list; make some
of the range references dynamic and the task is finalised.

--
Steve





"AltaEgo" <Somewhere@NotHere> wrote in message
news:uvNnEoguIHA.1504@TK2MSFTNGP05.phx.gbl...
> Thank you...I think
>
> Hmmm, if I transpose the dynamic list formula; don't anchor the defined
> name to a set row; space my pairs of rows with a blank in between and
> repeat the dynamic list every third row... Fat, slow workbook?
>
> OK, not as elegant as the original concept but how about letting the user
> sort out what has or has not been used with some scratching of the head
> (list sorted in alphabetical order) and use conditional formatting that
> highlights duplicates '=COUNTIF($D$2:$N$3,D2)>1'.
>
> Revised question, How do I turn the above idea for conditional formatting
> into something like the following so it actually works when copied to
> other cells?
>
> =COUNTIF($D$ & row() & :$N$ & row()+1 & ,D2)>1
>
> --
> Steve
>
> "RagDyer" <ragdyer@cutoutmsn.com> wrote in message
> news:#o1u3AeuIHA.672@TK2MSFTNGP02.phx.gbl...
>> See if this starts you in the right direction:
>>
>> http://www.contextures.com/xlDataVal03.html
>> --
>> HTH,
>>
>> RD
>>
>> ---------------------------------------------------------------------------
>> Please keep all correspondence within the NewsGroup, so all may benefit !
>> ---------------------------------------------------------------------------
>>
>> "AltaEgo" <Somewhere@NotHere> wrote in message
>> news:OhFOXYXuIHA.524@TK2MSFTNGP05.phx.gbl...
>>> Hi
>>>
>>> I have a need for data validation in which list entries are reduce when
>>> used anywhere in a pair of rows. However, each entry in the list should
>>> remain useable in the following pair of rows until used there, etc, etc.
>>>
>>> Example
>>>
>>> List
>>> Cat
>>> Cow
>>> Dog
>>> Bat
>>>
>>>
>>> R1 Cat Cow
>>> R2 Dog Bat
>>> R3 Cat Dog
>>> R4 Cow
>>> R5
>>> R6 Cat
>>> R7
>>> R8
>>>
>>> Cat would only be available in rows 7&8
>>> Cat, Cow, Dog, Bat would not be available in Rows 1 &2
>>> Bat would be available in rows 3-8
>>> Cow, Dog, Bat would be available in rows 5&6
>>> All would be available in rows 7&8
>>>
>>> Is someone able to wind me up and point me in the right direction?
>>>
>>> --
>>> Steve

>>
>>

Reply With Quote
  #5 (permalink)  
Old 05-20-2008, 02:32 AM
Debra Dalgleish
 
Posts: n/a
Re: Data validation - complex listbox

There's a sample file here with data validation that hides selections
made in previous columns:

http://www.contextures.com/excelfiles.html

Under Data Validation, look for DV0016 - Assign Employees to Single Task
Per Day

AltaEgo wrote:
> Hi
>
> I have a need for data validation in which list entries are reduce when
> used anywhere in a pair of rows. However, each entry in the list should
> remain useable in the following pair of rows until used there, etc, etc.
>
> Example
>
> List
> Cat
> Cow
> Dog
> Bat
>
>
> R1 Cat Cow
> R2 Dog Bat
> R3 Cat Dog
> R4 Cow
> R5
> R6 Cat
> R7
> R8
>
> Cat would only be available in rows 7&8
> Cat, Cow, Dog, Bat would not be available in Rows 1 &2
> Bat would be available in rows 3-8
> Cow, Dog, Bat would be available in rows 5&6
> All would be available in rows 7&8
>
> Is someone able to wind me up and point me in the right direction?
>



--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html

Reply With Quote
  #6 (permalink)  
Old 05-24-2008, 12:51 AM
AltaEgo
 
Posts: n/a
Re: Data validation - complex listbox

OTOOH

Deborah's method easily handles deleted entered values. Looks like its back
to the think tank on that method before committing too deeply on one method
or another.

BTW if anyone is following the thread, the Sub below was bashed together in
haste as a test.

xlWhole rather than xlPart is highly recommended.
MatchCase:=True would also be an improvement.

--
Steve

"AltaEgo" <Somewhere@NotHere> wrote in message
news:e9dnbjhuIHA.3792@TK2MSFTNGP02.phx.gbl...
> OTOH
>
> Calling the following from Worksheet Change together with a few other
> pieces of code to resort the list to be continuous and not move the cursor
> of the user enters a name manually is working a treat.
>
>
> Sub RemoveFromList()
> Dim valToRemove
> valToRemove = Selection.Value
>
> Range("a:A").Replace What:=valToRemove, _
> Replacement:="", LookAt:=xlPart, MatchCase:=False
>
> End Sub
>
> All that is left is to write some code to rebuild the lookup list; make
> some of the range references dynamic and the task is finalised.
>
> --
> Steve
>
>
>
>
>
> "AltaEgo" <Somewhere@NotHere> wrote in message
> news:uvNnEoguIHA.1504@TK2MSFTNGP05.phx.gbl...
>> Thank you...I think
>>
>> Hmmm, if I transpose the dynamic list formula; don't anchor the defined
>> name to a set row; space my pairs of rows with a blank in between and
>> repeat the dynamic list every third row... Fat, slow workbook?
>>
>> OK, not as elegant as the original concept but how about letting the user
>> sort out what has or has not been used with some scratching of the head
>> (list sorted in alphabetical order) and use conditional formatting that
>> highlights duplicates '=COUNTIF($D$2:$N$3,D2)>1'.
>>
>> Revised question, How do I turn the above idea for conditional formatting
>> into something like the following so it actually works when copied to
>> other cells?
>>
>> =COUNTIF($D$ & row() & :$N$ & row()+1 & ,D2)>1
>>
>> --
>> Steve
>>
>> "RagDyer" <ragdyer@cutoutmsn.com> wrote in message
>> news:#o1u3AeuIHA.672@TK2MSFTNGP02.phx.gbl...
>>> See if this starts you in the right direction:
>>>
>>> http://www.contextures.com/xlDataVal03.html
>>> --
>>> HTH,
>>>
>>> RD
>>>
>>> ---------------------------------------------------------------------------
>>> Please keep all correspondence within the NewsGroup, so all may benefit
>>> !
>>> ---------------------------------------------------------------------------
>>>
>>> "AltaEgo" <Somewhere@NotHere> wrote in message
>>> news:OhFOXYXuIHA.524@TK2MSFTNGP05.phx.gbl...
>>>> Hi
>>>>
>>>> I have a need for data validation in which list entries are reduce when
>>>> used anywhere in a pair of rows. However, each entry in the list should
>>>> remain useable in the following pair of rows until used there, etc,
>>>> etc.
>>>>
>>>> Example
>>>>
>>>> List
>>>> Cat
>>>> Cow
>>>> Dog
>>>> Bat
>>>>
>>>>
>>>> R1 Cat Cow
>>>> R2 Dog Bat
>>>> R3 Cat Dog
>>>> R4 Cow
>>>> R5
>>>> R6 Cat
>>>> R7
>>>> R8
>>>>
>>>> Cat would only be available in rows 7&8
>>>> Cat, Cow, Dog, Bat would not be available in Rows 1 &2
>>>> Bat would be available in rows 3-8
>>>> Cow, Dog, Bat would be available in rows 5&6
>>>> All would be available in rows 7&8
>>>>
>>>> Is someone able to wind me up and point me in the right direction?
>>>>
>>>> --
>>>> Steve
>>>
>>>

Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > MS Office > Excel


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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



All times are GMT. The time now is 04:57 PM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0


Sponsors:
Mortgages | Credit Card Debt Consolidation | Salvage cars | Repair Bad Credit | Myspace Layouts



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114