View Single Post
  #2   Report Post  
Debra Dalgleish
 
Posts: n/a
Default

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)

Alexander Banz wrote:
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



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html