3 Dimensional data vaildation without any duplicacy

rakeshghuge

New Member
Joined
May 7, 2009
Messages
9
HI....
I want to create a dynamic data validation sheet...
for insitance suppose i have a following database in excel...

<table style="border-collapse: collapse; width: 429pt;" width="573" border="0" cellpadding="0" cellspacing="0"><col style="width: 143pt;" span="3" width="191"> <tbody><tr style="height: 21.75pt;" height="29"> <td class="xl65" style="height: 21.75pt; width: 143pt;" width="191" height="29">RM Aggregate</td> <td class="xl65" style="border-left: medium none; width: 143pt;" width="191">RM Subaggregate</td> <td class="xl65" style="border-left: medium none; width: 143pt;" width="191">RM Grade</td> </tr> <tr style="height: 21.75pt;" height="29"> <td class="xl66" style="border-top: medium none; height: 21.75pt;" height="29">PLASTIC</td> <td class="xl66" style="border-top: medium none; border-left: medium none;">POLYPROPYLENE</td> <td class="xl66" style="border-top: medium none; border-left: medium none;">PAR
</td> </tr> <tr style="height: 21.75pt;" height="29"> <td class="xl66" style="border-top: medium none; height: 21.75pt;" height="29">PLASTIC</td> <td class="xl66" style="border-top: medium none; border-left: medium none;">POLYPROPYLENE</td> <td class="xl66" style="border-top: medium none; border-left: medium none;">PAS
</td> </tr> <tr style="height: 21.75pt;" height="29"> <td class="xl66" style="border-top: medium none; height: 21.75pt;" height="29">PLASTIC</td> <td class="xl66" style="border-top: medium none; border-left: medium none;">POLYVINYL CLORIDE</td> <td class="xl66" style="border-top: medium none; border-left: medium none;">EXTRUSION</td> </tr> <tr style="height: 21.75pt;" height="29"> <td class="xl66" style="border-top: medium none; height: 21.75pt;" height="29">PLASTIC</td> <td class="xl66" style="border-top: medium none; border-left: medium none;">POLYVINYL CLORIDE</td> <td class="xl66" style="border-top: medium none; border-left: medium none;">Q70</td> </tr> <tr style="height: 21.75pt;" height="29"> <td class="xl66" style="border-top: medium none; height: 21.75pt;" height="29">PLASTIC</td> <td class="xl66" style="border-top: medium none; border-left: medium none;">POLYVINYL CLORIDE</td> <td class="xl66" style="border-top: medium none; border-left: medium none;">Q02</td> </tr> <tr style="height: 21.75pt;" height="29"> <td class="xl66" style="border-top: medium none; height: 21.75pt;" height="29">PLASTIC</td> <td class="xl66" style="border-top: medium none; border-left: medium none;">POLYVINYL CLORIDE</td> <td class="xl66" style="border-top: medium none; border-left: medium none;">HNPV</td> </tr> <tr style="height: 21.75pt;" height="29"> <td class="xl66" style="border-top: medium none; height: 21.75pt;" height="29">PLASTIC</td> <td class="xl66" style="border-top: medium none; border-left: medium none;">POLYETHYLENE</td> <td class="xl66" style="border-top: medium none; border-left: medium none;">HDPE, BLOW MOLDING</td> </tr> <tr style="height: 21.75pt;" height="29"> <td class="xl66" style="border-top: medium none; height: 21.75pt;" height="29">PLASTIC</td> <td class="xl66" style="border-top: medium none; border-left: medium none;">POLYETHYLENE</td> <td class="xl66" style="border-top: medium none; border-left: medium none;">HDPE, INJECTION MOLDING</td> </tr> <tr style="height: 21.75pt;" height="29"> <td class="xl66" style="border-top: medium none; height: 21.75pt;" height="29">PLASTIC</td> <td class="xl66" style="border-top: medium none; border-left: medium none;">POLYETHYLENE</td> <td class="xl66" style="border-top: medium none; border-left: medium none;">LDPE</td> </tr> <tr style="height: 21.75pt;" height="29"> <td class="xl66" style="border-top: medium none; height: 21.75pt;" height="29">PLASTIC</td> <td class="xl66" style="border-top: medium none; border-left: medium none;">POLYSTYRENE</td> <td class="xl66" style="border-top: medium none; border-left: medium none;">NA</td> </tr> <tr style="height: 21.75pt;" height="29"> <td class="xl66" style="border-top: medium none; height: 21.75pt;" height="29">STEEL</td> <td class="xl66" style="border-top: medium none; border-left: medium none;">STEEL SHEET</td> <td class="xl66" style="border-top: medium none; border-left: medium none;">CRC-D</td> </tr> <tr style="height: 21.75pt;" height="29"> <td class="xl66" style="border-top: medium none; height: 21.75pt;" height="29">STEEL</td> <td class="xl66" style="border-top: medium none; border-left: medium none;">STEEL SHEET</td> <td class="xl66" style="border-top: medium none; border-left: medium none;">CRC-DD</td> </tr> <tr style="height: 21.75pt;" height="29"> <td class="xl66" style="border-top: medium none; height: 21.75pt;" height="29">STEEL</td> <td class="xl66" style="border-top: medium none; border-left: medium none;">STEEL SHEET</td> <td class="xl66" style="border-top: medium none; border-left: medium none;">CRC-EDD</td> </tr> <tr style="height: 21.75pt;" height="29"> <td class="xl66" style="border-top: medium none; height: 21.75pt;" height="29">STEEL</td> <td class="xl66" style="border-top: medium none; border-left: medium none;">STEEL SHEET</td> <td class="xl66" style="border-top: medium none; border-left: medium none;">HRC-D</td> </tr> <tr style="height: 21.75pt;" height="29"> <td class="xl66" style="border-top: medium none; height: 21.75pt;" height="29">STEEL</td> <td class="xl66" style="border-top: medium none; border-left: medium none;">STEEL TUBE</td> <td class="xl66" style="border-top: medium none; border-left: medium none;">CEW 21- ANNEALED</td> </tr> <tr style="height: 21.75pt;" height="29"> <td class="xl66" style="border-top: medium none; height: 21.75pt;" height="29">STEEL</td> <td class="xl66" style="border-top: medium none; border-left: medium none;">STEEL TUBE</td> <td class="xl66" style="border-top: medium none; border-left: medium none;">CEW 21</td> </tr> <tr style="height: 21.75pt;" height="29"> <td class="xl66" style="border-top: medium none; height: 21.75pt;" height="29">STEEL</td> <td class="xl66" style="border-top: medium none; border-left: medium none;">STEEL WIRE</td> <td class="xl66" style="border-top: medium none; border-left: medium none;">CDLC</td> </tr> <tr style="height: 21.75pt;" height="29"> <td class="xl66" style="border-top: medium none; height: 21.75pt;" height="29">STEEL</td> <td class="xl66" style="border-top: medium none; border-left: medium none;">STEEL WIRE</td> <td class="xl66" style="border-top: medium none; border-left: medium none;">CHQ</td> </tr> <tr style="height: 21.75pt;" height="29"> <td class="xl66" style="border-top: medium none; height: 21.75pt;" height="29">STEEL</td> <td class="xl66" style="border-top: medium none; border-left: medium none;">STEEL WIRE</td> <td class="xl66" style="border-top: medium none; border-left: medium none;">35A</td> </tr> </tbody></table>


now i have a huge list of Raw material in the database...
i want to create a series of datavalidation such that....if i select plastic in the first datavalidation then in the next data validation will only show a dropdown of the item which are infront of plastic in the above table....


like in this example...the first dropdown should show plastic & steel.....if i have selected plastic...the next dropdown list should show POLYPROPYLENE, POLYVINYL CLORIDE, POLYETHYLENE, POLYSTYRENE...and if i select POLYVINYL CLORIDE...the next dropdown should show EXTRUSION, Q70, Q02 & HNPV....
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Hi rakeshghuge,

I've put together a test WB if you want to take a look, you can download it from :

http://www.box.net/shared/yyuzgkly1r

If you click into Column A, you get the opportunity to select from the two primary categories, If you then click in Column B on the same Row you only get those secondary categories associated with the Produce in column A. Likewise when you click in Column C.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:eek:ffice:eek:ffice" /><o:p></o:p>
<o:p></o:p>
If you try to enter an incorrect input it should be cleared.<o:p></o:p>
<o:p></o:p>
Give it a try, and let me know how you get on.
<o:p></o:p>
ColinKJ
 
Upvote 0
Hi ColinKJ,

You are the best.....yes this is what i was asking for.....

But the data which which i have posted will be as a database, in which NEW data can be added...

& the drop down should come in other excel sheet.....

at present if I add a new data it gives an error....


there should be a provision to add New data in the database...but the sheet in which the dropdown is provided should show only content which is in database...

is it possible?????
 
Upvote 0
rakeshghuge,

What format does your database come in, and often do you add new items to the database.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:eek:ffice:eek:ffice" /><o:p></o:p>
<o:p></o:p>
If you look on the sheet in Columns AE : AN, you will see where the data is stored.<o:p></o:p>
<o:p></o:p>
Clearly, the number of columns will increase as the number of primary, secondary, etc product categories increase.<o:p></o:p>
<o:p></o:p>
Are you able to copy and paste an example of your database into your next post, or upload an example to a file share website from where I could download it

ColinKJ
 
Upvote 0
rakeshghuge

I've downloaded it.

I'll have a look as soon as I can. I'm away for the weekend so it won't be until next week now.

I'll get back to you.

Regards

ColinKJ
 
Upvote 0
Hi rakeshghuge,

I've done some work on your DB, you can download my test WB "3_D_DATAVALIDATION" from:

http://www.box.net/shared/yyuzgkly1r

The RM DETAILS sheet should operate as you want it.

When you add a new item on the DATABASE sheet, if you use the Ctrl+q combination, the drop down lists will be updated. You will need to remember to save the WB when you've added an new items to the DATABASE sheet.

Regards

ColinKJ
 
Upvote 0

Forum statistics

Threads
1,221,418
Messages
6,159,791
Members
451,589
Latest member
Harold14

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