Using Data Validation and VLOOKUP for Dependent Drop Down Lists Using Years

jessisan

New Member
Joined
Apr 18, 2013
Messages
5
After browsing the forums, I am unable to perform the task my boss is asking me to complete. Although I did get good information and I learned how to create dependent lists. Here is my problem, my lists involve numbers and I have yet to find a solution to titling a list with a number. Therefore I think I need to use VLOOKUP, but I am not familiar with it. I see how it is used in other examples, but I can not find an example quite like my own. Here is what I need to create:

I work at an automotive repair shop. We get a lot of questions about servicing and at what mileage is a service due. So I need to create a table that in the first column the customer can select the year of their vehicle. Then dependent on the year (see, this is my problem, I cannot create a list using a number so I am unable to create my second dependent list), the customer can choose their body type. Then dependent on their body type, their specific mileage intervals will appear in the third column. For example:

I have a 2006 (first column), E46 (second column dependent on first), therefore my service interval (third column dependent on second) is.......

Then in the third column the answer is multiple mileages. For example 15,000, 30,000, 45,000, 60,000. And I can't just say 15,000 mile interval because some of the intervals are varied like 16,000, 30,000, 32,000. So my third column will have to include the entire, long, interval. The end result should look as follows: All lists dependent on the one before it

YearBodyInterval
1996E4616,000: 30,000: 32,000: 50,000: 55,000: 62,000

<tbody>
</tbody>


Any help would be greatly appreciated. Thank you!
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Hi and welcome to MrExcel.

You have come to the right place to get the answer you require, but we will need a bit more information from you.

What are the sheet names which you are using?
What is the range of your data?
Does your data have "Headers?

I think that you can create a Data Validation Drop Down list based on the Years (numbers)
The main problem here will be "concatenating" (joining) all the results in one cell, if you can use more than one cell, then it should be fairly straight forward to give you a solution.

Check this out...

Excel Magic Trick # 259: Dynamic DV List Based On DV List - YouTube

Excel Magic Trick 360: Part 3: Return Multiple Items From One Lookup Value for Row w Formula - YouTube

I hope this helps.

Ak
 
Upvote 0
Thanks so much for your examples! I watched the first video because I need to be able to resolve the number issue first. I did exactly as the video showed and I was able create list names with numbers. So the first part of my first problem was solved! :) But.....when I try to create the second column using indirect, I get an error message that says :The source currently evaluates to an error. Do you want to continue?"
I clicked yes and while my first column of years shows up, my second column does nothing. So I did not watch the second video you posted yet, because I cannot create a third column until my second column works. I also tried to turn my worksheet into HTML so that you could see my example, but I did not understand how. So tomorrow I will look on youtube to create HTML and I will show you what I have. I really do appreciate you helping me. It gives me hope that what I'm trying to do is possible. I am very inexperienced with excel, but I can follow directions well.

Also to answer your questions:
I am only using one sheet and I do not have it named bc I am simply testing it out right now.
My datas range is A:1 to AN:19
It does not have headers.

Thanks, Thanks, Thanks!
 
Upvote 0
Hi,

Does this set up work for you?....

Sheet holding Data Validation Lists and Table of Service Intervals....

Excel Workbook
ABCDEFGHIJKLM
1Year1990199119921993*BodyService1Service2Service3Service4Service5*
2199090A91A92A93A*90A50001000015000***
3199190B91B92B93B*90B60001200018000***
4199290C91C92C93C*90C4000800012000***
51993*91D92D93D*91A500010000150002000025000*
61994**92E93E*91B6000120001800024000**
71995***93F*91C400080001200016000**
81996*****91D30006000900012000**
91997*****92A15000250003500045000**
101998*****92B50001000015000***
111999*****92C60001200018000***
122000*****92D4000800012000***
13******92E500010000150002000025000*
14******93A6000120001800024000**
15******93B400080001200016000**
16******93C30006000900012000**
17******93D15000250003500045000**
18******93E200040006000800010000*
19******93F4000800012000***
20*************
DV Lists


Customer Sheet with Data Validation Drop Down List, Dependent List and Service Results...

Example1...

Excel Workbook
ABCDEFGHI
1YearsBody*Service1Service2Service3Service4Service5*
2199191A*500010000150002000025000*
3*********
Customer


Example2....

Excel Workbook
ABCDEFGHI
1YearsBody*Service1Service2Service3Service4Service5*
2199292C*6000120001800000*
3*********
Customer


I wont go into an indepth explanation on how to achieve this until you confirm that this is the type of setup you require.
You may want to take a look here though on how to create a Data Validation List based on numbers...

Data Validation - dependent lists using name lists with numbers as - Microsoft Community

Sample File here...
<a href=http://www.filedropper.com/jessisan><img src=http://www.filedropper.com/download_button.png width=127 height=145 border=0/></a><div style=font-size:9px;font-family:Arial, Helvetica, sans-serif;width:127px;font-color:#44a854;> <a href=http://www.filedropper.com >file upload storage</a></div>

I hope this helps.

Ak
 
Last edited:
Upvote 0
Your spreedsheet would work great, I think. I am unsure what the astericks are for though.
Due to the weather we have been computer-less all day today so I apologize for the late response. I figured out how to make my speedsheet an HTML, it was rather simple, who knew?! :confused:

file:///Users/jessiroberson/Desktop/Work in progress.htm

So as you can see (hopefully my link worked) I have my lists and my first column, Years, works fine. Its when I try to connect the second list where I'm receiving an error. But that is the exact list I am working with for work. I wouldn't even know where to begin adding the third column of intervals.
 
Upvote 0
Well none of my links worked. So I will copy and paste my spreedsheet. So you can at least see that I have tried and where I'm trying to go with it.

Year199619971998199920002001200220032004200520062007200820092010201120122013YearBody
1996E36E36E36E36E36E36E36E39E46E46E46E60E60E60E63E70E70E702005
1997E38E38E38E38E38E39E46
1998E39E39E39E39E39E46E52
1999E46E46E46E52
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013

<colgroup><col style="width: 48pt;" width="64"> <col style="width: 13pt; mso-width-source: userset; mso-width-alt: 621;" width="17"> <col style="width: 48pt;" width="64"> <col style="width: 11pt; mso-width-source: userset; mso-width-alt: 512;" width="14"> <col style="width: 48pt;" width="64"> <col style="width: 9pt; mso-width-source: userset; mso-width-alt: 438;" width="12"> <col style="width: 48pt;" width="64"> <col style="width: 9pt; mso-width-source: userset; mso-width-alt: 438;" width="12"> <col style="width: 48pt;" width="64"> <col style="width: 8pt; mso-width-source: userset; mso-width-alt: 365;" width="10"> <col style="width: 48pt;" width="64"> <col style="width: 7pt; mso-width-source: userset; mso-width-alt: 329;" width="9"> <col style="width: 48pt;" width="64"> <col style="width: 8pt; mso-width-source: userset; mso-width-alt: 365;" width="10"> <col style="width: 48pt;" width="64"> <col style="width: 7pt; mso-width-source: userset; mso-width-alt: 329;" width="9"> <col style="width: 48pt; mso-width-source: userset; mso-width-alt: 2340;" width="64"> <col style="width: 5pt; mso-width-source: userset; mso-width-alt: 256;" width="7"> <col style="width: 48pt;" width="64"> <col style="width: 8pt; mso-width-source: userset; mso-width-alt: 365;" width="10"> <col style="width: 48pt;" width="64"> <col style="width: 7pt; mso-width-source: userset; mso-width-alt: 329;" width="9"> <col style="width: 48pt;" width="64"> <col style="width: 7pt; mso-width-source: userset; mso-width-alt: 329;" width="9"> <col style="width: 48pt;" width="64"> <col style="width: 5pt; mso-width-source: userset; mso-width-alt: 219;" width="6"> <col style="width: 48pt;" width="64"> <col style="width: 7pt; mso-width-source: userset; mso-width-alt: 329;" width="9"> <col style="width: 48pt; mso-width-source: userset; mso-width-alt: 2340;" width="64"> <col style="width: 5pt; mso-width-source: userset; mso-width-alt: 256;" width="7"> <col style="width: 48pt;" width="64"> <col style="width: 6pt; mso-width-source: userset; mso-width-alt: 292;" width="8"> <col style="width: 48pt;" width="64"> <col style="width: 7pt; mso-width-source: userset; mso-width-alt: 329;" width="9"> <col style="width: 48pt;" width="64"> <col style="width: 7pt; mso-width-source: userset; mso-width-alt: 329;" width="9"> <col style="width: 48pt;" span="4" width="64"> <tbody>
</tbody>
 
Upvote 0
Hi,

The * have NO relevance, they get added to the table when a post has been edited!!

Take a look here....

<a href=http://www.filedropper.com/jessisanv2><img src=http://www.filedropper.com/download_button.png width=127 height=145 border=0/></a><br /><div style=font-size:9px;font-family:Arial, Helvetica, sans-serif;width:127px;font-color:#44a854;> <a href=http://www.filedropper.com >upload files free</a></div>

I hope that helps, but I'm still unsure as to how you have your "service"/"intervals" data stored.

Ak
 
Upvote 0

Forum statistics

Threads
1,216,753
Messages
6,132,514
Members
449,731
Latest member
dasda34

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