You are here:

Excel/Use a specific data value if another cell has a certain text value question

Advertisement


Question
In B5, I have a drop down for the user to pick either VA3, VA4, or VA7.
In another part of the same sheet(K19), I want to fill in a certain value based on what operator chose in B5.  The values to use are listed elsewhere (VA3 value is in O6,  VA4 value is in O10, and VA7 value is in O14).
Any ideas on how to do this?  For example, if operator chose VA3, how do I fill in K19 to use the O6 value?

thanks,
kth

Answer
Keith,

Assume your table of "VA" values and corresponding "O" values are in the range of cells M1:N3 as shown:

M1:  VA3
N1:  O6
M2:  VA4
N2:  010
M3:  VA7
N3:  O14

in K19 put in
=if(B5="","",Vlookup(B5,M1:N3,2,False))

If these values of equivalencies were in another sheet, example Sheet3, located in the same cells (M1:N3) then it would be

=if(B5="","",Vlookup(B5,Sheet3!M1:N3,2,False))

--
regards,
Tom Ogilvy
About Excel
This topic answers questions related to Microsoft Excel spreadsheet (or workbook) stand-alone or Mircrosoft Office Excel including Excel 2003, Excel 2007, Office 2000, and Office XP. You can get Excel help on Excel formulas(or functions), Excell macros, charting in Excel, advanced features, and the general use of Excel. This does not provide a general Excel tutorial nor the basics of using a spreadsheet. It provides specific answers to using Microsoft Excel only. If you do not see your Excel question answered in this area then please ask an Excel question here

Excel

All Answers


Answers by Expert:


Ask Experts

Volunteer


Tom Ogilvy

Expertise

Selected as an Excel MVP by Microsoft since 1999. Answering Excel questions in Allexperts since its inception in 2001. Able to answer questions on almost all aspects of Excel's internal capabilities. If seeking a VBA solution, please specify that in your question itself so I give you the answer you want. [Excel has weak protection - if you are distributing an application, I don't answer questions on how to protect your project from your users.]

Experience

Extensive experience.

Education/Credentials
Master of Science (MS) degree Operations Research (ORSA)

Awards and Honors
Microsoft MVP in Excel.

©2012 About.com, a part of The New York Times Company. All rights reserved.