amanda,
It's obviously "terrific" that you resolved the task on your own. Here's a STAR in appreciation of you doing so, and sharing with others.
With your data having been "reversed" from the orientation I had referred to, it was no wonder you "got lost" with my explanation.
The orientation I had expected was as follows...
Agency IndirectCosts Visits IndirectCost/Visit
AgencyA 0 600 480
AgencyB 300 250 0
AgencyC 150 100 100
Using the above orientation, you could use the =DMIN and =DMAX database functions I mentioned.
As your application "evolves", you might end up opting for this other orientation, because it will more easily allow for additional information - for example on the Type of Agency - i.e. Address, Region, Type, etc.
Then... If for example this information is based on a MONTHLY period, you could add a DATE column (field). And each month you would copy a "Block of the 28 Agencies to a new set of rows, and enter a value for the NEXT MONTH in the DATE field.
Using Excel's database functions, you could generate a "matrix" (or Summary) of data - by Agency by Month, with a Month-Over-Month comparison, by Agency by Month by Region, etc.
I hope this gives you some "food for thought" about the possibilities of using Excel's database functions.
Because Microsoft has done a "less-than-adequate" job of explaining this POWERFUL component of Excel, I'm offering a "collection" of different example files I've created over the past couple years.
These examples will assist in getting anyone "jump started" and somewhat familiar with not only the "database formulas", but also the "Advanced Filter" capabilities of Excel. Many Excel users do not realize that the criteria used for the "database functions" are set up in the same manner when using the "Advanced Filter". So it's possible to use the database formulas for a "Summary" report, and use the same criteria for "filtering" the data for generation of "detail" reports - as "back up" for the Summary reports.
With the Advanced Filter and VBA, one can either "filter-in-place", or extract data (a copy) to a "separate" sheet where the data can more easily and effectively be prepared for viewing and/or printing purposes.
As compared to other options in Excel, I would suggest a SIGNIFICANT benefit of the Advanced Filter component is that it's MUCH easier to specify whatever COMPLEX criteria is necessary to isolate the precise data required.
I hope this is of interest, and as mentioned, anyone who would like a copy of these example database files, please feel free to ask.
Regards, ...Dale Watson dwatson@bsi.gov.mb.ca