Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 60
Default Indirect function syntax

I am trying to use the following formula:

=MATCH(G1,INDIRECT("'Sheet3'!"&"D"&MATCH(B4,Sheet3 !$A$2:$A
$21647,0)):INDIRECT("D"&MATCH(B4,Sheet3!$A$2:$A$21 647,1)),-1)

but keep getting the #VALUE!. When I do the formula auditing, it
works until he

=MATCH(125,Sheet3!$D$21323:$D$21645,-1)
then:
=MATCH(125,#VALUE,-1)

Am I doing something wrong?

Thanks for any help!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 364
Default Indirect function syntax

I have not tested this but try this;
replace : with & ":" & in your formula

"Matt" wrote:

I am trying to use the following formula:

=MATCH(G1,INDIRECT("'Sheet3'!"&"D"&MATCH(B4,Sheet3 !$A$2:$A
$21647,0)):INDIRECT("D"&MATCH(B4,Sheet3!$A$2:$A$21 647,1)),-1)

but keep getting the #VALUE!. When I do the formula auditing, it
works until he

=MATCH(125,Sheet3!$D$21323:$D$21645,-1)
then:
=MATCH(125,#VALUE,-1)

Am I doing something wrong?

Thanks for any help!

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 60
Default Indirect function syntax


That seems to help.

but now instead of evaluating this:
=MATCH(125,Sheet3!$D$21323:$D$21645,-1)

with D21323:D21645 as the match range, its evaluating the value in
those cells first so that the match range is

=MATCH(125,128.75:129.30,-1)

which still gives #VALUE!
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 60
Default Indirect function syntax

Works perfectly now. Thanks
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 154
Default Indirect function syntax

Matt,

There were a couple minor errors in the coding, here is a tested (on my
sheet), working function:

=MATCH(G1,INDIRECT("Sheet3!D"&MATCH(B4,Sheet3!$A$2 :$A$21647,0)&":D"&MATCH(B4,Sheet3!$A$2:$A$21647,1) ),-1)

Took the 's away from Sheet3 in the INDIRECT. Added &":D"& instead of the
second INDIRECT function as it was unneeded. Rearranged the parenthesis.
Note, this will return the first value of the array set by the indirect
function (hope that is what you were going for instead of the row number
itself).

--
--Thomas [PBD]
Working hard to make working easy.
Answered your question? Click ''''Yes'''' below.


"Matt" wrote:

I am trying to use the following formula:

=MATCH(G1,INDIRECT("'Sheet3'!"&"D"&MATCH(B4,Sheet3 !$A$2:$A
$21647,0)):INDIRECT("D"&MATCH(B4,Sheet3!$A$2:$A$21 647,1)),-1)

but keep getting the #VALUE!. When I do the formula auditing, it
works until he

=MATCH(125,Sheet3!$D$21323:$D$21645,-1)
then:
=MATCH(125,#VALUE,-1)

Am I doing something wrong?

Thanks for any help!



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
indirect formula syntax Graeme[_2_] Excel Worksheet Functions 2 July 9th 08 02:00 PM
Syntax on Indirect() Jim May Excel Discussion (Misc queries) 4 December 6th 07 02:15 PM
Indirect and Sumif Syntax Problems [email protected] Excel Discussion (Misc queries) 3 August 4th 06 01:59 AM
Syntax for IF function Sarah New Users to Excel 1 July 31st 06 01:57 PM
INDIRECT syntax? stephen.reading100 Excel Worksheet Functions 2 April 22nd 05 01:52 AM


All times are GMT +1. The time now is 03:46 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"