DGet function

J

Jim H

Is there a function or technique that behaves like the DGET
function but is able to return multiple values that match
the criterion instead of just one.
 
P

Peo Sjoblom

Advanced filter is one technique,it is also similar to DGET the way it is
set up.
There are some fairly complicated formulas using a combination of
index and small that you can use to extract multiple hits...
Also the autofilter could probably be used in most cases..
 
P

Paul

Jim H said:
Is there a function or technique that behaves like the DGET
function but is able to return multiple values that match
the criterion instead of just one.

It depends what you want to do with the multiple returns. If you actually
want to see them individually, you could look here in the paragraph
"Arbitrary Lookups":
http://www.cpearson.com/excel/lookups.htm
But you might be better off sorting your data rather than trying to extract
matching data.

However, if you want (for example) to sum the matching returns, you can use
SUMPRODUCT, which can take as many criteria as you wish, like this:
=SUMPRODUCT( (A1:A1000=criterion1) * (B1:B1000>criterion2) * (C1:C1000))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top