Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 41
Default Deleting items as they are used from a drop down menu

I have a column that has 44 active rows in it and I have attached each cell
in those 44 rows to a data validation list.

I would like to know how to tell Excel, that if an item is selected from the
drop down list, that it is removed from the choices and conversely if a
person deletes the chosen item from one of the 44 cells, it is placed back
into the list for choices.

I am guessing a Visual Basic macro is going to be employed here and I don't
mind if the drop down list gets moved from the workbook and placed straight
into the coding of the macro.

I thank you for any help you can offer.

Tofer
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 41
Default Half way there

I searched the forum here and found this website which helped me solve the
duplicate value problem. So thanks for the help you gave me, whoever you are
at that website. (I obviously cannot remember the name of the person.)

http://www.beyondtechnology.com/tips.shtml

Now I am wondering if anyone has a way to delete items from the lookup list
if they have been used, as well as a way to put the items back in the list if
they are deleted from the 44 cells.

Thanks, Tofer

"ToferKing" wrote:

I have a column that has 44 active rows in it and I have attached each cell
in those 44 rows to a data validation list.

I would like to know how to tell Excel, that if an item is selected from the
drop down list, that it is removed from the choices and conversely if a
person deletes the chosen item from one of the 44 cells, it is placed back
into the list for choices.

I am guessing a Visual Basic macro is going to be employed here and I don't
mind if the drop down list gets moved from the workbook and placed straight
into the coding of the macro.

I thank you for any help you can offer.

Tofer

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default Deleting items as they are used from a drop down menu

You could place your list of choices in a column and in the next column something like

=IF(COUNTIF(A$1:A$44,E1)0,"",E1)

and fill down alongside the list. Here A$1:A$44 is your data entry range (where the user makes selections), values are in column
E (from E1 down) and the formula above is in column F.

Use Data Validation List and select column F as the "source"

The only drawback is you get a list with "holes" (does not compact as items are removed).
If you don't like that then enter this in G1 and fill down:

=IF(ISERROR(SMALL(F$1:F$44,ROW())),"",SMALL(F$1:F$ 44,ROW()))

If your list doesn't start at row 1 then you'll need to adjust the ROW() part.

Use this third column as your validation "source".

I'm sure there are niftier ways to do this though....

Tim



"ToferKing" wrote in message ...
I have a column that has 44 active rows in it and I have attached each cell
in those 44 rows to a data validation list.

I would like to know how to tell Excel, that if an item is selected from the
drop down list, that it is removed from the choices and conversely if a
person deletes the chosen item from one of the 44 cells, it is placed back
into the list for choices.

I am guessing a Visual Basic macro is going to be employed here and I don't
mind if the drop down list gets moved from the workbook and placed straight
into the coding of the macro.

I thank you for any help you can offer.

Tofer



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 41
Default Deleting items as they are used from a drop down menu

Tim,

Thank you so much for the ideas. I will try them today.

Christina

"Tim Williams" wrote:

You could place your list of choices in a column and in the next column something like

=IF(COUNTIF(A$1:A$44,E1)0,"",E1)

and fill down alongside the list. Here A$1:A$44 is your data entry range (where the user makes selections), values are in column
E (from E1 down) and the formula above is in column F.

Use Data Validation List and select column F as the "source"

The only drawback is you get a list with "holes" (does not compact as items are removed).
If you don't like that then enter this in G1 and fill down:

=IF(ISERROR(SMALL(F$1:F$44,ROW())),"",SMALL(F$1:F$ 44,ROW()))

If your list doesn't start at row 1 then you'll need to adjust the ROW() part.

Use this third column as your validation "source".

I'm sure there are niftier ways to do this though....

Tim



"ToferKing" wrote in message ...
I have a column that has 44 active rows in it and I have attached each cell
in those 44 rows to a data validation list.

I would like to know how to tell Excel, that if an item is selected from the
drop down list, that it is removed from the choices and conversely if a
person deletes the chosen item from one of the 44 cells, it is placed back
into the list for choices.

I am guessing a Visual Basic macro is going to be employed here and I don't
mind if the drop down list gets moved from the workbook and placed straight
into the coding of the macro.

I thank you for any help you can offer.

Tofer




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 41
Default Deleting items as they are used from a drop down menu

Tim, your solution worked!

Thank you ever so much.

(By the way, I have been trying to click on your answer and marking it as a
soluction, but the message window isn't giving me that option.)

Christina

"Tim Williams" wrote:

You could place your list of choices in a column and in the next column something like

=IF(COUNTIF(A$1:A$44,E1)0,"",E1)

and fill down alongside the list. Here A$1:A$44 is your data entry range (where the user makes selections), values are in column
E (from E1 down) and the formula above is in column F.

Use Data Validation List and select column F as the "source"

The only drawback is you get a list with "holes" (does not compact as items are removed).
If you don't like that then enter this in G1 and fill down:

=IF(ISERROR(SMALL(F$1:F$44,ROW())),"",SMALL(F$1:F$ 44,ROW()))

If your list doesn't start at row 1 then you'll need to adjust the ROW() part.

Use this third column as your validation "source".

I'm sure there are niftier ways to do this though....

Tim



"ToferKing" wrote in message ...
I have a column that has 44 active rows in it and I have attached each cell
in those 44 rows to a data validation list.

I would like to know how to tell Excel, that if an item is selected from the
drop down list, that it is removed from the choices and conversely if a
person deletes the chosen item from one of the 44 cells, it is placed back
into the list for choices.

I am guessing a Visual Basic macro is going to be employed here and I don't
mind if the drop down list gets moved from the workbook and placed straight
into the coding of the macro.

I thank you for any help you can offer.

Tofer




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
How to make items in a drop down menu reference a number Blaize Excel Discussion (Misc queries) 2 March 5th 10 09:48 AM
Pivot Table DATA area drop down menu items disapper after switchof Kith Excel Discussion (Misc queries) 1 April 30th 07 03:35 AM
Deleting Headers and Footers that are in the drop down Menu? Lisa Excel Discussion (Misc queries) 1 March 5th 07 06:33 PM
Deleting an otpion on the drop down menu on a pivot table Accountant Williams Excel Discussion (Misc queries) 5 September 28th 05 12:28 PM
Menu items added with menu item editor in older versions Michael Hoffmann Excel Discussion (Misc queries) 2 January 7th 05 01:40 PM


All times are GMT +1. The time now is 04: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"