Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

look up and insert a function with VLOOKUP

Status
Not open for further replies.

bob12bob

Civil/Environmental
Dec 14, 2002
3
I know how to use VLOOKUP to look up a number or text string and insert it into a cell. What I want to know is how to look up a function and have it work in the cell it is inserted into.

EXAMPLE:

A B C D E
1 a (E1+D1) 3 6
2 b (E*D)
3
4 a

In cell B4 I want to put =VLOOKUP(A4, A1:B2,2,False) and have it return a value of 9. If I put a "b" in cell A4 I want it to return a value of 18.

If any one knows how to do this using functions in excel please reply. Thanks

 
Replies continue below

Recommended for you

Those formulas are in cells B1 and B2.
 
Um, what you have written seems to work once you have corrected the obvious mistake.

leastways, if i type a in a4 i get 9, and if i type b then i get 18?



Cheers

Greg Locock
 
Thanks, My example was not a good one because I am using multiple sheets in the workbook. I think that I have found another way to do it but if not I'll post again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor