apgmin
Board Regular
- Joined
- Mar 1, 2010
- Messages
- 150
- Office Version
- 2013
- Platform
- Windows
CENTER CODE.xlsx | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | |||
1 | STATE | CODE | MAHARASHTRA | MADHYA PRADESH | KARNATAKA | GUJARAT | STATE | STATE CODE | DISTRICT | DISTRCIT CODE | ||||||||
2 | Gujarat | GJ | Ahmednagar | 01 | Agar-Malwa | 01 | Bagalkot | 01 | Ahmedabad | 01 | Madhya Pradesh | MP | Formula 1 | Formula 2 | ||||
3 | Karnataka | KA | Akola | 02 | Alirajpur | 02 | Ballari | 02 | Amreli | 02 | Karnataka | KA | Formula 1 | Formula 2 | ||||
4 | Madhya Pradesh | MP | Amravati | 03 | Anuppur | 03 | Belagavi | 03 | Anand | 03 | Formula 1 | Formula 2 | ||||||
5 | Maharashtra | MH | Beed | 04 | Ashoknagar | 04 | Bengaluru Rural | 04 | Aravalli | 04 | Formula 1 | Formula 2 | ||||||
6 | Bhandara | 05 | Balaghat | 05 | Bengaluru Urban | 05 | Banaskantha | 05 | Formula 1 | Formula 2 | ||||||||
7 | Buldhana | 06 | Barwani | 06 | Bidar | 06 | Bharuch | 06 | Formula 1 | Formula 2 | ||||||||
8 | Chandrapur | 07 | Betul | 07 | Chamarajanagar | 07 | Bhavnagar | 07 | Formula 1 | Formula 2 | ||||||||
9 | Chhatrapati Sambhajinagar | 08 | Bhind | 08 | Chikballapur | 08 | Botad | 08 | Formula 1 | Formula 2 | ||||||||
10 | Dharashiv | 09 | Bhopal | 09 | Chikkamagaluru | 09 | Chhota Udepur | 09 | Formula 1 | Formula 2 | ||||||||
CENTER |
Cell Formulas | ||
---|---|---|
Range | Formula | |
N2:N10 | N2 | =IF(M2>0,VLOOKUP(M2,$A$1:$B$10,2,FALSE),"") |
Cells with Data Validation | ||
---|---|---|
Cell | Allow | Criteria |
M2:M10 | List | =$A$2:$A$10 |
In Cells M2:M10, we can select only the state names from the list in A1:A10
Corresponding to the state selected the code from b2 to b10 comes up in N2:N10, So Madhya Pradesh in M2 shows MP in N2 and karnataks in M3 shows KA in N3
I need help in
Formula 1: It should make me select only the list of district based on the state selected earlier. Like say in M2, If I select the state names as Madhya Pradesh then I can select the district names listed only in cells F2 to F10 AND If I select the state names as Maharashtra then I can select the district names listed only in cells D2 to D10
Formula 2 should match the district selected in O2 and give the code for that district,
So Say In M2 for Madhya Pradesh if I select the district Ashok Nagar in O2 it should show 04 and If I select Bhind it should show 08
Similarly In M2 for Maharashtra if I select the district Akola in O2, it should show 02 and If I select Beed it should show 04