validation+vlookup

niyrho

Board Regular
Joined
Jun 19, 2008
Messages
108
Does anyone know of a way have excel show information from one column in a drop down box and when you select something it outs in the information from the next column?
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
You can easily set this up. What are the variables that you want to have returned, and what would your list consist of? You will need to provide some more information in order to get a specific result.
 
Upvote 0
I have one worksheet set as a database. In column A I have device types, for fire systems, smoke detectors, heat detectors and such. In column B I have the abbreveations for them.

I have another worksheet set up as an inspection report. Column A in that sheet is for the device types. I need drop down lists the show the whole name for the device, but I want it to enter the abbreveation when you select something.

So you click on the drop down and it refers to column A in the other sheet. Then you can choose, for example, Photo Electric Smoke Detector. Then it will enter the abbreveation from column B. Kinda makes it idiot proof. Huge plus with some of my guys.
 
Upvote 0
OK, so I have set up a sheet that goes along what you are trying to do...as I understand it. On Sheet1 I have set up mine to look like this:
Book1
ABCD
1DeviceTypesAbbreviations
2FireSystemFS
3SmokeDetectorsSD
4HeatDetectorsHD
5OtherTypesOT
Sheet1


Then what I did was highlight the Device Types (A2:A5) and make a named range from it called "devicetype". Then on Sheet2 in A2 I make a data validation list and the range is set as "=devicetype". Then on Sheet2 in column B I put in the VLOOKUP to pull the abbreviation from Sheet1, the formula is as follows:

=VLOOKUP(A2,Sheet1!A2:B5,2,0)
Book1
ABCD
1InspectionReportAbbreviation
2OtherTypesOT
Sheet2


From your post it seems that is what you are looking for. If I have missed the mark let me know and I will make adjustments.

Hope that helps.
 
Upvote 0
Thats pretty close to what I need. Only problem is, on sheet 2, I can only have one column for that. So what I use the dropdown list in, say, A2, I can select smoke setector and in that same cell it put in SD instead of smoke detector.

I'm trying to combine idiot proof with regulation and company policy.
 
Upvote 0
I am not aware of any way to have that happen and select an option from the validation dropdown and then return the abbreviation in the same cell...If it is possible it is beyond my knowledge.

Anyone out there that knows if that is possible?

What is the need for returning the abbreviation only? Are there other lookups or something within the sheet that need that, or can you just return the device type and still get the necessary results?
 
Upvote 0
There's a number of reasons I need it to work that way. Some of the devices names are far to long to write out on the device list for an inspection. It keeps things alot neater and easier to read. Most fire marshals don't want to read that much, they insist, sometimes demand that we use the abbreveation. And alot of times it helps aviod arguing with our customers. The customers have no idea what the abbreveations stand for, to them it just looks really really technical. And therefore think its all way over their heads and leave it alone. If they see something we had to fail on the report and they can see what the device they always give us alot of crap about it. They'll see that we had to fail something that they personaly don't care about and want us to pass it anyway. It doesn't bother them that by law we can't do that and would lose our license if we do.

Fire alarm techs deal with alot of ******** from people that just don't wanna understand.
 
Upvote 0
Is there a way that you can post the sheet that you are dealing with so that we can see and possibly come up with a workaround for you?
 
Upvote 0
I'm not sure how I would do that. Its all on another computer that has no internet access.
 
Upvote 0

Forum statistics

Threads
1,214,429
Messages
6,119,435
Members
448,898
Latest member
dukenia71

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