• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

sum or sum if?

crmuha

New Member
I have a list of $ values, and I need to find the sum of those that are greater than -( negative)$5 and less than $5. PLEASE HELP!
 
Hi crmuha,


SUM

Code:
=SUM(IF((A1:A20>-5)*(A1:A20<5),A1:A20))[i] Ctrl + Shift + Enter

[b] SUMIFS [/b]

[code]=SUMIFS(A1:A20,A1:A20,">"&-5,A1:A20,"<"&5)
In case of Excel 2007+[/i]

SUMPRODUCT


little modification in bobhc's formula

=SUMPRODUCT((A1:A20>-5)*(A1:A20<5),A1:A20)[/code]


Regards,

Deb
 
Good day Deb


Thanks for the modification I was just giving the number of instances of >-5 and <5 and not the sum total :)
 
If you're using (or require compatability with) pre Excel 2007 (so SUMIFS() is unavailable) then you can also do it with SUMIF():

[pre]
Code:
=SUMIF(A1:A20,">-5")-SUMIF(A1:A20,">=5")
[/pre]
 
Hi Gargi..


Its third time.. Only single line.. "UNABLE TO UNDERSTAND"..

but never clear.. what exactly.. you are not able to understand..


Please search in the top right google search bar.. what function you are unable to grasp..

It will gives you some good topic.. for basic things.. if you need some customize function.. we are here for you.. :)


Regards,

Deb
 
Hi, roygargi!


I've got a solution for your SUMIF issue to understand it. Try this:

a) open Excel (after turning on the computer, identifying yourself if needed, waiting for startup process to end)

b) open a new workbook if it's not automatically done

c) in any cell type:

=SUMIF(

and press the function symbol "f(x)" at the left of the edit formula text box (aka the place where you enter values into cells and write formulas)

d) click on "Help about this function" at the lower left blue link

e) if any issue in the process go to this link:

http://office.microsoft.com/en-us/excel-help/sumif-function-HP010342932.aspx


Regards!
 
Back
Top