What is wrong with this formula

cherokee

Board Regular
Joined
Apr 16, 2012
Messages
93
=MATCH(AM$13,INDIRECT('[3CH Position Directional Index.xlsx]Position 1'!"L"&SUM(AM$15:AM15)+1&":'[3CH Position Directional Index.xlsx]Position 1'!$L$15566")
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
=MATCH(AM$13,INDIRECT('[3CH Position Directional Index.xlsx]Position 1'!"L"&SUM(AM$15:AM15)+1&":'[3CH Position Directional Index.xlsx]Position 1'!$L$15566")

Do you get an error, if so what error?

Your formula has more opening parentheses than closing parentheses

There's no 3rd argument for MATCH function - if you expect an exact match you need zero as third argument

I'd expect quotes right at the start of the INDIRECT function, i.e. to enclose the workbook and sheet name too
 
Upvote 0
Does it work with the book open?

Pretty sure INDIRECT needs the book open to work

The book is open. The following works geat in the same book.
=MATCH(AP$13,INDIRECT("L"&SUM(AP$15:AP15)+1&":$L$15566"),0)
I must put many calculatios in another book to keep Excel from not responing.

<tbody>
</tbody>
 
Last edited:
Upvote 0
I did not copy the entire formula. Here is the correct one
=MATCH(AM$13,INDIRECT('[3CH Position Directional Index]Position 1'!"L"&SUM(AM$15:AM15)+1&":'[3CH Position Directional Index]Position 1'!$L$15566"),0)

<tbody>
</tbody>
 
Upvote 0
There is a couple of issues here.

=INDIRECT("Sheet1!L"&SUM(AP$15:AP15)+1&":$L$15566")

Is working for me, note I have Sheet1!Lx:L15566 where you have Sheet1!Lx:Sheet1!L15566,(Sheet instead of position of course) as well as Barrys mention of the quotation marks.
 
Last edited:
Upvote 0
Any time you refer to text in the INDIRECT formula - for instance a hard-coded file name, that text needs to be enclosed in "" the only time you don't need then (and would not use them) is if you are referring to data in a cell ref.
So if the file name is in a cell that you are referencing...
=MATCH(AM$13,INDIRECT("'["&A1&".xlsx]Position 1'!"L"&.........cell range
where A1 contains the text string 3CH Position Directional Index as the file name

On the other hand, if you hard-code the file name...
=MATCH(AM$13,INDIRECT("'[3CH Position Directional Index]Position 1'!cell-range"..........
 
Upvote 0
Nothing is working now. What bothers me now, is at one time I had it working. Computer crashed. I had backup but it was a day behind.
 
Upvote 0

Forum statistics

Threads
1,215,006
Messages
6,122,666
Members
449,091
Latest member
peppernaut

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top