Advanced Validation Required

csanjeev99

New Member
Joined
Aug 17, 2014
Messages
9
In A1 cell It will show only Office.

In C2 cell It will show State.

In E1 cell it will show Division.

In G1 cell it will show District.


Now I will explain relation between office, state, division and district.

One Office can have more than 1 State
One State can have more than 1 Division
One Division can have more than 1 District

for more details i have given below example of data
OfficeOffice CodeStateState CodeDivisionDivision CodeDistrictDistrict Code
Ahmedabad01Dadra And Nagar Haveli Surat058Dadra And Nagar Haveli
Ahmedabad01Daman And Diu Surat058Daman
Ahmedabad01Daman And Diu Junagarh Diu
Ahmedabad01Gujrat24Ahmedabad055Ahmadabad474
Ahmedabad01Gujrat24Ahmadabad055Bhavnagar481
Ahmedabad01Gujrat24Ahmedabad055Gandhinagar473
Ahmedabad01Gujrat24Ahmedabad055Kheda483
Ahmedabad01Gujrat24Ahmedabad055Surendranagar475
Ahmedabad01Gujrat24Patan054Banaskantha469
Ahmedabad01Gujrat24Rajkot056Kachchh468
Ahmedabad01Gujrat24Patan054Mahesana471
Ahmedabad01Gujrat24Patan054Patan470
Ahmedabad01Gujrat24Patan054Sabarkantha472
Ahmedabad01Gujrat24Rajkot056Amreli480
Ahmedabad01Gujrat24Rajkot056Jamnagar477
Ahmedabad01Gujrat24Rajkot056Junagadh479
Ahmedabad01Gujrat24Rajkot056Porbandar478
Ahmedabad01Gujrat24Rajkot056Rajkot476
Ahmedabad01Gujrat24Surat058Bharuch488
Ahmedabad01Gujrat24Surat058Navsari490
Ahmedabad01Gujrat24Surat058Surat492
Ahmedabad01Gujrat24Surat058Tapi493
Ahmedabad01Gujrat24Surat058The Dangs489
Ahmedabad01Gujrat24Surat058Valsad491
Ahmedabad01Gujrat24Ahmedabad055Anand482
Ahmedabad01Gujrat24Vadodara057Dohad485
Ahmedabad01Gujrat24Vadodara057Narmada487
Ahmedabad01Gujrat24Vadodara057Panchmahal484
Ahmedabad01Gujrat24Vadodara057Vadodara486
Bangalore02Karnataka29Bangalore084Bangalore Rural583
Bangalore02Karnataka29Bangalore084Bangalore Urban572
Bangalore02Karnataka29Bangalore084Chikkaballapur582
Bangalore02Karnataka29Bangalore084Chitradurga566
Bangalore02Karnataka29Bangalore084Davanagere567
Bangalore02Karnataka29Bangalore084Kolar581
Bangalore02Karnataka29Bangalore084Ramanagara584
Bangalore02Karnataka29Bangalore084Shimoga568
Bangalore02Karnataka29Bangalore084Tumakuru571
Bangalore02Karnataka29Belgaum085Bagalkot556
Bangalore02Karnataka29Belgaum085Belgaum555
Bangalore02Karnataka29Belgaum085Bijapur557
Bangalore02Karnataka29Belgaum085Dharwad562
Bangalore02Karnataka29Belgaum085Gadag561
Bangalore02Karnataka29Belgaum085Haveri564
Bangalore02Karnataka29Belgaum085Uttara Kannada563
Bangalore02Karnataka29Gulbarga086Bellary565
Bangalore02Karnataka29Gulbarga086Bidar558
Bangalore02Karnataka29Gulbarga086Gulbarga579
Bangalore02Karnataka29Gulbarga086Koppal560
Bangalore02Karnataka29Gulbarga086Raichur559
Bangalore02Karnataka29Gulbarga086Yadgir580
Bangalore02Karnataka29Mysore087Chamarajanagar578
Bangalore02Karnataka29Mysore087Chikamagalur570
Bangalore02Karnataka29Mysore087Dakshina Kannada575
Bangalore02Karnataka29Mysore087Hassan574
Bangalore02Karnataka29Mysore087Kodagu576
Bangalore02Karnataka29Mysore087Mandya573
Bangalore02Karnataka29Mysore087Mysore577
Bangalore02Karnataka29Mysore087Udupi569

<colgroup><col><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>
 
Dear Rick,

I would be grate full if you could please consider my message no# 8.

Also I have serached regarding my problem it could Multiple Validation
 
Upvote 0

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
csanjeev, what you wish to achieve, I believe, is possible, but it requires a significant number of steps. Unfortunately I have to work and am away from the office for the next 5 weeks so don't have time to develop a full solution. However the principal would be:

1. Create named ranges for Office, State, Division, District.
2. Create Unique Lists for each something like this for the ShortOffice List: {=IFERROR(INDEX(Office,MATCH(0,COUNTIF($I$1:I1,Office),0)),"")} note that this should be enter in cell I2 with CTRL+SHFT+ENTER as it is an array formula then copied down as far as necessary. For the ShortState list this would be: =IFERROR(INDEX(State,MATCH(0,COUNTIFS($L$1:L1,State),0)),"") entered in cell L2 again with CTRL+SHFT+ENTER and copied down. Short Division is =IFERROR(INDEX(Division,MATCH(0,COUNTIFS($O$1:O1,Division),0)),""). I ran out of time to do ShortDistrict.
3. To the left of each of these short lists lookup the relevant Office, State or Division using something like this in cell K2: =IFERROR(INDEX(Office,MATCH(L2,State,0),0),"") and copied down.
4. Once these are working, you can create dynamic named lists for example for the list of Offices: =OFFSET(Sheet1!$I$2,0,0,COUNTA(Sheet1!$I$2:$I$23)-COUNTBLANK(Sheet1!$I$2:$I$23)), the range I2:I23 is where the shortoffice list resides.

At this point my invention has run out of time, but you should be left with 4 unique lists with to the left of each the name of the superior grouping. It ought then to be reasonably simple to create validation lists based on this information.


Apologies for an incomplete solution, but perhaps others can assist when you can show them where this has got you too.

Best Regards
 
Upvote 0
Thats pretty much the direction I was going in, but felt I needed to start with extracting unique lists. Hopefully the OP will now have enough to solve his problem.

Regards
 
Upvote 0
Pl see the attached file "Validation ans"
http://www.box.net/files
Are you the Original Poster (OP) for this thread (your name is different, but you are posting like you are the OP)?

Your link requires a login... you need to post the link the website gave you for your individual file, not the link you use to login to your account with.
 
Upvote 0
are you are looking for a dependent dropdown list by data validation.

Debra Dalgleish has many of posts regarding this topic. Pls see if you could find sth that fits your need.
http://blog.contextures.com/archives/2013/09/26/conditional-drop-down-lists-in-excel/
 
Upvote 0

Forum statistics

Threads
1,214,945
Messages
6,122,393
Members
449,081
Latest member
JAMES KECULAH

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top