Defining a range

D

Don

Is there a way to define a range (let's say in column D), by a criteria, in
another column? For instance, if I have a formula in cell H1 that needs to
perform a function on data written in column D, but I only want to defing the
range in column D if the applicable criteria is in column B. I want all
other data in column D ignored. Can this be done? Byy the way, the range
would be contiguous.
 
J

JE McGimpsey

One way:

=SUMIF(B:B,"criterion",D:D)

So if you only want values in D:D if B:B = "Yes",

=SUMIF(B:B,"Yes",D:D)
 

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