chrisbullough
Materials
- Jun 18, 2003
- 20
Hi all,
I have a recurrent problem in using database functions such as DGET, DMAX and DAVERAGE. These are very useful for processing data from a data logger. For example, I can calculate summary statistics and even fitted equations to subsets of the data. (Some of this I can do with Pivot tables, but the latter I cannot.)
However, I have two problems.
Problem 1. I want to create a table of database functions summarising the data. The syntax is for example DCOUNT(Database, Field, Criteria) and the Criteria range "includes a column label and one cell below the label for a condition". If I then want to copy the DCOUNT forumula down into the next row, then the Criteria range is invalid; instead I have to stagger the Criteria for the second row into another column. In Lotus 123 for Windows, there is a way of putting the criteria explicitly in the database function - is there a way of doing the same Excel? Or some other solution?
Problem 2. When I am fitting equations to subsets of the data, I sometimes need to use the Solver. However the database functions are sometimes sluggish to recaculate. Indeed, sometimes they will not. (Sometimes the only way to force recalculation is to re-enter the formula, outside of the Solver.) Has anyone else had experience of problems in using database functions with the Solver, and do you have any solutions?
I realise that I am probably using Excel at its limit, and will probably have to code-up this problem in VBA, but I would rather use Excel's built in functions as they are easier for the users understand.
Thanks for your help in advance.
Chris
I have a recurrent problem in using database functions such as DGET, DMAX and DAVERAGE. These are very useful for processing data from a data logger. For example, I can calculate summary statistics and even fitted equations to subsets of the data. (Some of this I can do with Pivot tables, but the latter I cannot.)
However, I have two problems.
Problem 1. I want to create a table of database functions summarising the data. The syntax is for example DCOUNT(Database, Field, Criteria) and the Criteria range "includes a column label and one cell below the label for a condition". If I then want to copy the DCOUNT forumula down into the next row, then the Criteria range is invalid; instead I have to stagger the Criteria for the second row into another column. In Lotus 123 for Windows, there is a way of putting the criteria explicitly in the database function - is there a way of doing the same Excel? Or some other solution?
Problem 2. When I am fitting equations to subsets of the data, I sometimes need to use the Solver. However the database functions are sometimes sluggish to recaculate. Indeed, sometimes they will not. (Sometimes the only way to force recalculation is to re-enter the formula, outside of the Solver.) Has anyone else had experience of problems in using database functions with the Solver, and do you have any solutions?
I realise that I am probably using Excel at its limit, and will probably have to code-up this problem in VBA, but I would rather use Excel's built in functions as they are easier for the users understand.
Thanks for your help in advance.
Chris