ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   problem using the INDIRECT function (https://www.excelbanter.com/excel-discussion-misc-queries/117602-problem-using-indirect-function.html)

hot dogs

problem using the INDIRECT function
 
I would like to use the INDIRECT function to look at a cell on a different
sheet to my formula. I can get this to work fine if I enter the following
formula;

=INDIRECT("'Reference Sheet'!D4") (as my second sheet is called Reference
Sheet)

However, to get the 'D4' part of the formula I am using the following formula;

=("D"&(ROW(D3)+(MATCH(C13,'Reference Sheet'!D3:$D$55,0))))

So I put the formulae together to get;

=INDIRECT("'Reference Sheet'!"D"&(ROW(D3)+(MATCH(C13,'Reference
Sheet'!D3:$D$55,0)))")

But this gives an error and highlights "D", so I removed the "" and then the
#REF! error appeared.

I have tried using brackets and inverted commas in different places but i
can't seem to get the formula to work.

Any suggestions would be appreciated.

Bob Phillips

problem using the INDIRECT function
 
=INDIRECT("'Reference Sheet'!D"&(ROW(D3)+(MATCH(C13,'Reference
Sheet'!D3:$D$55,0))))

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"hot dogs" wrote in message
...
I would like to use the INDIRECT function to look at a cell on a different
sheet to my formula. I can get this to work fine if I enter the following
formula;

=INDIRECT("'Reference Sheet'!D4") (as my second sheet is called Reference
Sheet)

However, to get the 'D4' part of the formula I am using the following

formula;

=("D"&(ROW(D3)+(MATCH(C13,'Reference Sheet'!D3:$D$55,0))))

So I put the formulae together to get;

=INDIRECT("'Reference Sheet'!"D"&(ROW(D3)+(MATCH(C13,'Reference
Sheet'!D3:$D$55,0)))")

But this gives an error and highlights "D", so I removed the "" and then

the
#REF! error appeared.

I have tried using brackets and inverted commas in different places but i
can't seem to get the formula to work.

Any suggestions would be appreciated.




hot dogs

problem using the INDIRECT function
 
Excellent, Thanks very much Bob.

"Bob Phillips" wrote:

=INDIRECT("'Reference Sheet'!D"&(ROW(D3)+(MATCH(C13,'Reference
Sheet'!D3:$D$55,0))))

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"hot dogs" wrote in message
...
I would like to use the INDIRECT function to look at a cell on a different
sheet to my formula. I can get this to work fine if I enter the following
formula;

=INDIRECT("'Reference Sheet'!D4") (as my second sheet is called Reference
Sheet)

However, to get the 'D4' part of the formula I am using the following

formula;

=("D"&(ROW(D3)+(MATCH(C13,'Reference Sheet'!D3:$D$55,0))))

So I put the formulae together to get;

=INDIRECT("'Reference Sheet'!"D"&(ROW(D3)+(MATCH(C13,'Reference
Sheet'!D3:$D$55,0)))")

But this gives an error and highlights "D", so I removed the "" and then

the
#REF! error appeared.

I have tried using brackets and inverted commas in different places but i
can't seem to get the formula to work.

Any suggestions would be appreciated.






All times are GMT +1. The time now is 06:22 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com