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

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

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,144,616
Messages
5,725,325
Members
422,614
Latest member
nicklasx

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