×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Are you an
Engineering professional?
Join Eng-Tips Forums!
• Talk With Other Members
• Be Notified Of Responses
• Keyword Search
Favorite Forums
• Automated Signatures
• Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

#### Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

# look up and insert a function with VLOOKUP

## look up and insert a function with VLOOKUP

(OP)
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

### RE: look up and insert a function with VLOOKUP

(OP)
Those formulas are in cells B1 and B2.

### RE: look up and insert a function with VLOOKUP

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

### RE: look up and insert a function with VLOOKUP

(OP)
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.

#### Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

#### Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Close Box

# Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

• Talk To Other Members
• Notification Of Responses To Questions
• Favorite Forums One Click Access
• Keyword Search Of All Posts, And More...

Register now while it's still free!