#1   Report Post  
SteveMcDowell19
 
Posts: n/a
Default Need Function

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 ?????
  #2   Report Post  
cola
 
Posts: n/a
Default

sumif()


  #3   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Sat, 9 Apr 2005 02:31:03 -0700, SteveMcDowell19
wrote:

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 ?????


=IF(AND(SUM(B5:H5)=70,SUM(B5:H5)<=72),SUM(B5:H5), "out of range")


--ron
  #4   Report Post  
JE McGimpsey
 
Posts: n/a
Default

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


In article ,
SteveMcDowell19 wrote:

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 ?????

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need a ISWorkday Function -- Any Ideas Mark Excel Worksheet Functions 5 March 29th 05 01:58 AM
Hyperlinks using R[1]C[1] and offset function in its cell referenc Elijah-Dadda Excel Worksheet Functions 0 March 5th 05 03:31 AM
Conversion SVC Excel Worksheet Functions 9 February 28th 05 02:29 PM
Trim function doesn't clean out ASCII Code 160 (Space) Ronald Dodge Excel Worksheet Functions 6 January 27th 05 03:48 AM
Formula to list unique values JaneC Excel Worksheet Functions 4 December 10th 04 12:25 AM


All times are GMT +1. The time now is 05:58 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"