custom functions

orcafriend

New Member
Joined
Jun 9, 2004
Messages
3
Has anyone created a function like dsum, but it instead of summing a field according the criteris, will generate a list of the field matching the criteria?

For example I have a database of student names, age, sex, gpa and want to generate a list of 16yr olds with a 3.0+ gpa. I also need the list to change as the gpa and age fields get updated.
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.

lenze

Legend
Joined
Feb 18, 2002
Messages
13,690
Hi and welcome to the board.
No need for a custom function. There are numerous built-in tools in Excel to do this sort of thing. Advanced Filter is one. My personal preference, however, would be an advanced Pivot Table. If you are a pro, you might use MSQuery. All will produce the list you seek.

HTH

lenze
 

orcafriend

New Member
Joined
Jun 9, 2004
Messages
3
An advanced filter will work and is my fall-back position, but it will not update ad my data fields get updated. Also for graphing reasons, pivot tables do not work well.

Ycan dsum and daverage, all I want to do is dlist.

Any other thoughts?
 

Forum statistics

Threads
1,140,944
Messages
5,703,313
Members
421,290
Latest member
james90

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top