Referencing named arrays across different sheets problem

rxp409

New Member
Joined
Apr 27, 2010
Messages
17
Hi,

I'm working in excel 2002. I have a table of data in sheet1, and am trying to perform calculations across them in sheet2. The whole table of data is named all, the first column is named dates, then in sheet2 i have 2 cells specifying dates start and end.

The calculations in the second sheet which seems to have a problem is:

=(PERCENTILE(INDIRECT(ADDRESS(MATCH(start,Sheet1!dates,1),4)):INDIRECT(ADDRESS(MATCH(end, sheet1!dates,1),4)),0.9))*100

which returns #NUM! error. In the define name dialog box all named ranges have the correct sheets referenced. So actually in the above formula when i hit enter the Sheet1! parts get replaced by the name of the workbook.xls

Also in the second sheet i have got other formulas which reference the all table without specifying the sheet at all - and that works, but makes no difference when i just use dates in the above formula. So i guess it has something to do with the INDIRECT, ADDRESS and MATCH functions.

Any ideas?
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
OK, so the problem is not with referencing the named ranges across sheets, as i've tried with other functions and they all work. [I would change the name of the thread, but i can't see the edit button anywhere :confused:].

So the problem is with the percentile function working across both sheets, or maybe the way i am specifying the inputs. I have tried a number of suggested permutations of 'sheet1'![dates] etc. which don't seem to work. Given what i said above the name of the range should work on its own - but doesn't - leading me to believe it is something to do with the other inputs.
 
Upvote 0

Forum statistics

Threads
1,215,471
Messages
6,125,002
Members
449,202
Latest member
Pertotal

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