A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Conditional Drop Down



 
 
Thread Tools Display Modes
  #1  
Old May 15th, 2011, 02:57 PM
sunil.kini sunil.kini is offline
Member
 
First recorded activity by OfficeFrustration: May 2011
Posts: 2
Default Conditional Drop Down

In the attached excel file there are list of names and list of cities. If I select city as "DELHI" for "A", I should not get "DELHI" in subsequent drop downs. Means next drop downs should show only remaining cities. Please help me on this.
  #2  
Old May 15th, 2011, 03:03 PM
sunil.kini sunil.kini is offline
Member
 
First recorded activity by OfficeFrustration: May 2011
Posts: 2
Default

not able to atach zip file
  #3  
Old May 16th, 2011, 10:29 AM
tarquinious tarquinious is offline
Experienced Member
 
First recorded activity by OfficeFrustration: Mar 2011
Posts: 34
Default

Quote:
Originally Posted by sunil.kini View Post
In the attached excel file there are list of names and list of cities. If I select city as "DELHI" for "A", I should not get "DELHI" in subsequent drop downs. Means next drop downs should show only remaining cities. Please help me on this.
This is semi-simple to achieve, but far more difficult to describe the steps for. I'll make an attempt, but if this doesn't make any sense, you might want to send me a private message and I can email you an example spreadsheet for this.

To do this, I have created 4 lists, a Master list in column E with all of your possible values. Columns F, G and H are the lists of values that are in your picklists held in cells A3, B3 and C3 respectively.

With the Master List starting in cell E3, you have the following formulas in cells F3, G3 and H3:
=IF(OR($B$3=E3,$C$3=E3),"",E3)
=IF(OR($A$3=E3,$C$3=E3),"",E3)
=IF(OR($A$3=E3,$B$3=E3),"",E3)

Copy those formula down the columns F, G and H for every value you have in the Master List in column E.

Now if you make your picklist for cell A3 pick from those values in column F, B3 from column G and C3 from column H values, when you select a value from one pick list, it will disappear from the other two pick lists.
 




Thread Tools
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 On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:59 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.