G Guest Apr 9, 2005 #1 I'm new to Excel and need a function that will sum an array if the total is between 70 and 72. =SUM(B5:H5)=>70,<=72 ?????
I'm new to Excel and need a function that will sum an array if the total is between 70 and 72. =SUM(B5:H5)=>70,<=72 ?????
R Ron Rosenfeld Apr 9, 2005 #3 I'm new to Excel and need a function that will sum an array if the total is between 70 and 72. =SUM(B5:H5)=>70,<=72 ????? Click to expand... =IF(AND(SUM(B5:H5)>=70,SUM(B5:H5)<=72),SUM(B5:H5),"out of range") --ron
I'm new to Excel and need a function that will sum an array if the total is between 70 and 72. =SUM(B5:H5)=>70,<=72 ????? Click to expand... =IF(AND(SUM(B5:H5)>=70,SUM(B5:H5)<=72),SUM(B5:H5),"out of range") --ron
J JE McGimpsey Apr 9, 2005 #4 One way: =SUMIF(B5:H5,">=70")-SUMIF(B5:H5,">75") or, equivalently =SUMIF(B5:H5, "<=75")-SUMIF(B5:H5,"<70") Alternatively: =SUMPRODUCT(--(B5:H5>=70),--(B5:H5<=75)) For an explanation of the "--", see http://www.mcgimpsey.com/excel/doubleneg.html
One way: =SUMIF(B5:H5,">=70")-SUMIF(B5:H5,">75") or, equivalently =SUMIF(B5:H5, "<=75")-SUMIF(B5:H5,"<70") Alternatively: =SUMPRODUCT(--(B5:H5>=70),--(B5:H5<=75)) For an explanation of the "--", see http://www.mcgimpsey.com/excel/doubleneg.html