indirect function in different worksheets, losing my hair!

G

Guest

Dear all,

please help me on the following.

DBMAX(A1:INDIRECT("B"&E4),B1,D1:D2)
I have this formula working in a single worksheet. The formula returns the
maximum value in the B colum of a database with colums A-B, with the number
of rows, defined by a value in in E4. Criteria for the search are set in D1
and D2. THIS WORKS,

However:

THIS DOESN'T WORK,

DBMAX('test tab'!A1:INDIRECT("B"&'test tab'!E4),'test tab'!B1,'test
tab'!D1:D2)

Basicallly I want the DBMAX calculation to happen in another work sheet. The
database, the row definer (E4), and the criteria are all the first worksheet
'test tab'.

Why does it not work?????????

more importantly, how can I make it work!!!

thanks
 
D

Debra Dalgleish

Add one more reference to the sheet name:

=DMAX('test tab'!A1:INDIRECT("'test tab'!B"&'test tab'!E4),'test
tab'!B1,'test tab'!D1:D2)
 

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

Top