Solved

Sum if negative

Posted on 2015-02-18
13
59 Views
Last Modified: 2015-02-18
Hi,

Attached are 5 numbers from d5-h5

in the attrition cell I need to sum the negative cells
In the growth cell I need to sum the positive cells

What formula would I use?

Thanks
EE.xlsx
0
Comment
Question by:Seamus2626
  • 5
  • 4
  • 3
  • +1
13 Comments
 
LVL 32

Expert Comment

by:Rob Henson
ID: 40616296
SImple SUMIF will do this for you:

=SUMIF(D5:H5,"<"&0,D5:H5)

=SUMIF(D5:H5,">"&0,D5:H5)

Thanks
Rob
0
 
LVL 18

Expert Comment

by:Simon
ID: 40616297
Use
Attrition:
=SUMIF(D4:H4,"<0")
Growth:
=SUMIF(D4:H4,">0")
0
 
LVL 24

Expert Comment

by:Phillip Burton
ID: 40616300
=SUMIF(D4:H4,"<0")

And

=SUMIF(D4:H4,">0")
0
 

Author Comment

by:Seamus2626
ID: 40616316
Hi guys, I cant use sumif

For the example attached - attrition must = -289 and growth = 940

Thanks
0
 
LVL 24

Expert Comment

by:Phillip Burton
ID: 40616324
How do you calculate that? And why can't you use SUMIF?
0
 
LVL 32

Expert Comment

by:Rob Henson
ID: 40616366
So:

Attrition = 651-940=-289

Growth = MAX(D5:H5) = 940
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 24

Expert Comment

by:Phillip Burton
ID: 40616373
Then attrition is =h4-max(d4:h4) then?
0
 
LVL 32

Expert Comment

by:Rob Henson
ID: 40616385
I am assuming that the headers for each column are geographical regions:

ASP - Asia Pacific
EUR - Europe
LATAM - Latin America
ME - Middle East
NA - North America

Are you comparing like with like?

If correct to do so, I assume the Highest and next highest for the 651-940 calculation could be in any of the 5 cells.
0
 

Author Comment

by:Seamus2626
ID: 40616482
Hi guys, sorry for not being clearer here.

It is for regions

Some may be growing, some may be declining

I need the sum of the numbers that are growing
and

the sum of the numbers that are declining

So the message is - from your 5 regions, and your net growth of 651 - you are growing 940 and declining 289

Hope that makes sense!
0
 
LVL 24

Expert Comment

by:Phillip Burton
ID: 40616491
No, it doesn't.

You have figures of -20      -65      940      0      651

The total of the +ve figures is 940+651=1591
The total of the -ve figures is -20-65 = -85
0
 

Author Comment

by:Seamus2626
ID: 40616507
I see I got my numbers mixed up when doing up a new workbook

Im looking at

ASP= -204
EUR= -20
LATAM= -65
ME = 940
NA= 0

Thanks
0
 
LVL 24

Accepted Solution

by:
Phillip Burton earned 500 total points
ID: 40616515
So why can't you use SUMIF?

If you can't, then:

=MIN(D4,0)+MIN(E4,0)+MIN(F4,0)+MIN(G4,0)+MIN(H4,0)
=MAX(D4,0)+MAX(E4,0)+MAX(F4,0)+MAX(G4,0)+MAX(H4,0)

and if I haven't got it right, please tell me exactly what results you are looking for.
0
 

Author Closing Comment

by:Seamus2626
ID: 40616527
Perfect!

Thanks Phillip
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This Article is a follow-up to my Mappit! Addin Article (http://www.experts-exchange.com/A_2613.html), it was inspired by an email posting I made to EUSPRIG (http://www.eusprig.org/index.htm), I will briefly cover: 1) An overvie…
Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now