Hi, I need to use the result of a simple calculation in one cell on Sheet1 (=A1+2) as the row in a cell reference on a different sheet. eg =Sheet2!A"n" where "n" is the result of formula.
Hi, I need to use the result of a simple calculation in one cell on Sheet1 (=A1+2) as the row in a cell reference on a different sheet. eg =Sheet2!A"n" where "n" is the result of formula.
Last edited by The Mint; 10-05-2009 at 03:05 PM.
Where cell A1 has that first calculation in it, try this in the next cell:
=INDIRECT("Sheet2!A" & A1)
Be careful about falling love with the INDIRECT() function. It comes with a lot of overhead. Every cell you use it in will recalculate every time you change any piece of data anywhere on your sheet. Every time. If you insert 1000s of these INDIRECT() functions into one sheet, you will suffer some performance issues.
It's fine in controlled amounts.
Last edited by JBeaucaire; 10-01-2009 at 11:47 AM.
_________________
Microsoft MVP 2010 - Excel
Visit: Jerry Beaucaire's Excel Files & Macros
If you've been given good help, use theicon below to give reputation feedback, it is appreciated.
Always put your code between code tags. [CODE] your code here [/CODE]
?None of us is as good as all of us? - Ray Kroc
?Actually, I *am* a rocket scientist.? - JB (little ones count!)
You can avoid INDIRECT here with INDEX
=INDEX(Sheet2!A:A,A1)
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
Absolutely fantastic!!! Thanks chaps! Works a treat.
If that takes care of your need, be sure to EDIT your original post, click Go Advanced and mark the PREFIX box [SOLVED].
(Also, use the blue "scales" icon in our posts to leave Reputation Feedback, it is appreciated)
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks