Solved

kup that will return a formula

Posted on 2015-01-27
3
79 Views
Last Modified: 2015-01-27
can an expert help with this problem please.

I need to lookup column P in my current sheet and then find this in my sheet called Static. [I have called the data range in the sheet static Agebands]

column A in Agebands contains the name of various countries, column E contains formulas which is what I would like my vlookup to return.

so an normal vlookup i.e. =VLOOKUP(P9,AgeBands,4,0)  would return >45 but what I need it to return is the formula in E which is =IF(S2<=30,Static!$B$7,IF(Spain!S2<45,Static!$C$7,IF(Spain!S2>45,Static!$D$7)))

can anyone help?
0
Comment
Question by:Jagwarman
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 24

Accepted Solution

by:
Phillip Burton earned 500 total points
ID: 40573815
Use =FormulaInE(match(P9,Static!A:A,0))

And in a VBA module

Function FormulaInE(introw)
FormulaInE = sheets("Static").cells(introw,5).Formula
End Function
0
 

Author Comment

by:Jagwarman
ID: 40574599
Hi Phillip,

Hmm! maybe what I was hoping for won't work. Your code does get the formula, it picks up the formula from the static sheet but instead of returning the answer >45 it shows the formula
=IF(S2<=30,Static!$B$7,IF(Spain!S2<45,Static!$C$7,IF(Spain!S2>45,Static!$D$7)))
in the cell.

So I guess it's not possible to get it to put out the result rather than the formula ??
0
 

Author Comment

by:Jagwarman
ID: 40574606
I take that back, I have worked out how to make it perform the calculation.

Many thanks Phillip.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question