ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Defining a range (https://www.excelbanter.com/excel-worksheet-functions/15033-defining-range.html)

Don

Defining a range
 
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.
--
Don Rountree

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)

In article ,
Don wrote:

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.



All times are GMT +1. The time now is 12:27 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com