ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Adding the sum of figures in one column if they meet 2 criteria (https://www.excelbanter.com/excel-worksheet-functions/14322-adding-sum-figures-one-column-if-they-meet-2-criteria.html)

Justine Burn via OfficeKB.com

Adding the sum of figures in one column if they meet 2 criteria
 
Please help! I have a column of 500 figures. I want to calculate the total
value of all figurews between 10000 and 12000 in the column at the bottom
of the page. What do you recommend? Currently i have the following but it
is not working. =SUM(IF(D3:D151,"10000")*AND(D3:D151,"<12000")).

--
Message posted via http://www.officekb.com

Don

Justine,

Try

=SUM((D1:D500=10000)*(D1:D13<=12000)*D1:D500)

Entered as an array formula (ctrl-shift-enter)

Don Pistulka


"Justine Burn via OfficeKB.com" wrote in message
...
Please help! I have a column of 500 figures. I want to calculate the total
value of all figurews between 10000 and 12000 in the column at the bottom
of the page. What do you recommend? Currently i have the following but it
is not working. =SUM(IF(D3:D151,"10000")*AND(D3:D151,"<12000")).

--
Message posted via http://www.officekb.com




Myrna Larson

Assuming you want to include 10000 and 12000,

=SUMIF(D3:D151,"=10000")=SUMIF(D3:D151,"12000")


On Tue, 22 Feb 2005 01:46:58 GMT, "Justine Burn via OfficeKB.com"
wrote:

Please help! I have a column of 500 figures. I want to calculate the total
value of all figurews between 10000 and 12000 in the column at the bottom
of the page. What do you recommend? Currently i have the following but it
is not working. =SUM(IF(D3:D151,"10000")*AND(D3:D151,"<12000")).



Myrna Larson

Typo the WRT the 2nd SUMIF, it should be -SUMIF(....) rather than
=SUMIF(....


On Mon, 21 Feb 2005 20:14:12 -0600, Myrna Larson
wrote:

Assuming you want to include 10000 and 12000,

=SUMIF(D3:D151,"=10000")=SUMIF(D3:D151,"12000 ")


On Tue, 22 Feb 2005 01:46:58 GMT, "Justine Burn via OfficeKB.com"
wrote:

Please help! I have a column of 500 figures. I want to calculate the total
value of all figurews between 10000 and 12000 in the column at the bottom
of the page. What do you recommend? Currently i have the following but it
is not working. =SUM(IF(D3:D151,"10000")*AND(D3:D151,"<12000")).



Justine Burn via OfficeKB.com

Thank you thank you thank you. Fab Myra. Owe u big time.

--
Message posted via http://www.officekb.com


All times are GMT +1. The time now is 08:15 PM.

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