eit09,
Unfortunately in Excel the DMax function criteria has to be a range with at least two rows, the column name, then the criterion, in your case the member label. Lotus 123 has a much more flexible Dmax function, but I don't suppose that's any use to you.
I have fixed up your spreadsheet so that it works, but because you have over 500 categories I saved it as an XL2007 file, so I could keep all the criteria ranges on one row. If you don't have XL 2007 let me know and I'll arrange it to work on 2003 or earlier.
What I did was:
1. Extract all the unique member labels
2. Copy them into a row usinge paste-special-transpose
3. Copy the column name (Member Label) into the row above
4: Enter a formula to generate addresses of the criteria ranges: =ADDRESS(7,X7)&":"&ADDRESS(8,X7), where x7 contains the column number (25 upwards)
5: Enter the DMax formula as:=DMAX($C$6:$E$12928,3,INDIRECT(W7)), where w7 contains the address of the criteria range.
6. Copy down for all the different mamber labels
7. On the front sheet use the lookup function to look up the values from the dmax table.
I hope that makes sense.
No doubt many people would say that you would be better off with a proper database program for the amount of data that you are working with, but it's taken me longer to write this reply than do the actual work.
Doug Jenkins
Interactive Design Services