Excel/open office - sum of numbers>0 and <
Solved
catcat
-
Acim -
Acim -
Hello everyone,
This is my first time posting here, and I feel particularly clueless, even after reading the various posts about conditional sums, etc...
Here's the little issue that's bothering me, but it bothers me because it shouldn't be that hard, yet I'm stuck...
I have in the same column some numbers >0 and others <0, and I would like to get (at the end of this column) the sum of the positive and negative numbers separately.
I've tried SUMIF but it seems to be stuck....
I'm using Open Office, but I think the formulas should be the same as in Excel.... it's just in my head where the logic isn't clicking!
If anyone could spare a bit of time to advise me, I would really appreciate it.
Have a great evening!
This is my first time posting here, and I feel particularly clueless, even after reading the various posts about conditional sums, etc...
Here's the little issue that's bothering me, but it bothers me because it shouldn't be that hard, yet I'm stuck...
I have in the same column some numbers >0 and others <0, and I would like to get (at the end of this column) the sum of the positive and negative numbers separately.
I've tried SUMIF but it seems to be stuck....
I'm using Open Office, but I think the formulas should be the same as in Excel.... it's just in my head where the logic isn't clicking!
If anyone could spare a bit of time to advise me, I would really appreciate it.
Have a great evening!
Configuration: Windows XP Opera 9.26
12 answers
-
A3 = 25
A4 = -12
A5 = 63
A6 = -42
A8 =SUMIF(A3:A6,"<0")
A9 =SUMIF(A3:A6,">0")
--
If there is no solution, then there is no problem. -
Good evening,
here is the syntax in Excel:
=SUMIF($C$1:$C$12, ">0")
and
=SUMIF($C$1:$C$12, "<0")
don't forget the " " around the test
eric -
If I understood correctly (but I'm not sure)
=IF(A1<b1 />
Check the calculations by hand.
--
If there is no solution, it means there is no problem. -
Yeah, well, I won, by 5 seconds.
Good luck to you and to Eriic as well
;-)
--
If there is no solution, then there is no problem. -
Uh, I have another one....
A1=30
B1=6
C1=4
Based on that, I would like the sum of row 1 taking into account the number in B1 if B1>C1 ...
Attention, ready, set, go ...
... and thank you a thousand in advance!!! -
-
Well, here I am again with my faulty logic...
I have 6 columns:
Hours worked: 100
Contract hours: 95
Authorized absences: 9
Sick leave: 3
Training: 1
Paid leave: 2
I want to know the extra hours worked (or not, so in the result cell I want to obtain a negative or positive number), and in the particular calculation logic of the association I should do: 100 - (95 - 9 - 3 - 1 - 2) = 20 extra hours
EXCEPT that I should only account for the reduction of authorized absences on contract hours WHEN hours worked < contract hours
And I would like to have a formula that summarizes all this...
And I've been pulling my hair over it for quite some time now... If anyone could prevent me from going bald or throwing my PC out the window, I would be really, really happy... and above all I could move forward in my job !!!!!
Thanks for all the help you can provide
Best regards -
to do: 100 - (95 - 9 - 3 - 1 - 2) = 20 overtime hours
Well 100 - (95 - 9 - 3 - 1 - 2) = -10 overtime hours
--
If there is no solution, then there is no problem. -
Hello,
I have a problem with the SUMIF function. Here’s what I wrote:
=SUMIF((G8:G17)-(E8:E17), "<=0", G8:G17) What I want is for the numbers in column G to be included in the sum of that column only if Gn-En<=0. I really don’t know how to do it; I think I’m not far off with this formula. Thank you. Lola
Column E Column G
50 670 129 924
886 080 1 136 000
28 381 72 772
55 285 141 756
115 672 296 595
299 146 383 520
378 000 630 000
423 150 465 000
65 910 169 000
27 300 70 000
Sum-
Hello
Not far... but it still needs to be understood by SUMIF which line of G you want to subtract from a line of E?!
To simply solve your problem, if you can use a return column out of the main field that you can hide at the end of the table, let's say for example column X:
<bold>In X8=IF(G8>E8,G8,0)</bold>
drag this formula down through the field
Wherever you want your result, just sum up the X
CRDLMNT
--
The truth is not owned, it is only sought.
-
-
Hello,
Thank you for your response. I'm sorry, but I didn't quite understand the method you are recommending. I vaguely understood that I should add a column at the end of the table, but I was actually hoping to avoid that... -
Sorry, upon rereading your message, I have understood your process which I had already considered. However, I wanted to do it in a single formula as I have several columns to analyze. This method unfortunately requires me to create another table next to my original table. Thank you.
-
Well done!!! ... are you having a contest to see who can be the fastest or what???
Anyway, thank you very much for your answers, even though I really feel foolish for not having figured it out myself...
Thank you, thank you, thank you