Reference cells in Functions

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Here is my function

=INDEX('Downloaded Data'!$A$1:$H$495,MATCH(I1,'Downloaded Data'!$I$1:$I$495,0),3

This function is put into the Downloaded Data sheet via a VB procedure. I want "495" to be a variable, which comes from E11 on sheet1. I cannot get it to work.

Please help
Thank you!
 
Hi
try
=INDEX(INDIRECT("'Downloaded Data'!$A$1:$H$" &
'sheet1'!E11),MATCH(I1,INDIRECT("'Downloaded Data'!$I$1:$I$" &
'sheet1'!E11),0),3)
 
Hi Deb,

=INDEX(INDIRECT("'Downloaded Data'!$A$1:$H$" &
Sheet1!E11),MATCH(I1,INDIRECT("'Downloaded Data'!$I$1:$I$"&Sheet1!E11),0),3)


--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

Deb Blair said:
Here is my function:

=INDEX('Downloaded Data'!$A$1:$H$495,MATCH(I1,'Downloaded Data'!$I$1:$I$495,0),3)

This function is put into the Downloaded Data sheet via a VB procedure. I
want "495" to be a variable, which comes from E11 on sheet1. I cannot get
it to work.
 
Well Deb,

seeing as I gave exactly the same answer (bar single quotes round Sheet1) as
Frank's phenomenal answer, I am perplexed by your response.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top