Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Find negative numbers

Hi

I have these numbers in a column

-0,05%
1,27%
1,22%
-0,89%
0,19%
0,26%
-0,19%
1,48%
0,77%
-1,11%
-1,20%
0,11%

1)

I want to single out the negative number - add them together - and
display the avarage in a cell

2)

In another cell I want to single out the positive numbers - add them
together - and display the avarage

Sorry if this has been asked before. Please be kind

Thanks!

Kitty

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,316
Default Find negative numbers

Use SUMIF to total your negative numbers and COUNTIF to get the divisor.

=SUMIF(A1:A7,"<0",A1:A7)/COUNTIF(A1:A7,"<0")
--
Kevin Backmann


"Kitty" wrote:

Hi

I have these numbers in a column

-0,05%
1,27%
1,22%
-0,89%
0,19%
0,26%
-0,19%
1,48%
0,77%
-1,11%
-1,20%
0,11%

1)

I want to single out the negative number - add them together - and
display the avarage in a cell

2)

In another cell I want to single out the positive numbers - add them
together - and display the avarage

Sorry if this has been asked before. Please be kind

Thanks!

Kitty


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Find negative numbers

=AVERAGE(IF(A1:A12<0,A1:A12))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Kitty" wrote in message
...
Hi

I have these numbers in a column

-0,05%
1,27%
1,22%
-0,89%
0,19%
0,26%
-0,19%
1,48%
0,77%
-1,11%
-1,20%
0,11%

1)

I want to single out the negative number - add them together - and
display the avarage in a cell

2)

In another cell I want to single out the positive numbers - add them
together - and display the avarage

Sorry if this has been asked before. Please be kind

Thanks!

Kitty



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Find negative numbers

On Tue, 10 Oct 2006 13:31:38 GMT, Kitty wrote:


Hi and thanks but I can't get it to work :( I think it maight have to
do with the syntax somehow I'm on a international pc with an english
version of excel 2003

I have made a fresh new file with the follwing numbers

Column <A
7,11
-0,52
13,47
12,72
-9,21
1,95
2,71
-1,95
15,45
7,85
-11,34
-12,39

This formula =SUM(A1:A12) works and gives the result
of 25,85 Note the comma as separator.

I can also do this =AVERAGE(A1:A12) which gives 2,15

But I can't do this =SUMIF(A1:A12,"0",A1:A12) "the formula you
typed...

=AVERAGE(IF(A1:A12<0,A1:A12)) also no good :(

Any ideas - Thanks






  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,316
Default Find negative numbers

Click Tools and select ADD-INS and see if you have the Analysis Toolpack
running, if not click the checkbox to turn it on. The SUMIF and COUNTIF
should work once it's activated
--
Kevin Backmann


"Kitty" wrote:

On Tue, 10 Oct 2006 13:31:38 GMT, Kitty wrote:


Hi and thanks but I can't get it to work :( I think it maight have to
do with the syntax somehow I'm on a international pc with an english
version of excel 2003

I have made a fresh new file with the follwing numbers

Column <A
7,11
-0,52
13,47
12,72
-9,21
1,95
2,71
-1,95
15,45
7,85
-11,34
-12,39

This formula =SUM(A1:A12) works and gives the result
of 25,85 Note the comma as separator.

I can also do this =AVERAGE(A1:A12) which gives 2,15

But I can't do this =SUMIF(A1:A12,"0",A1:A12) "the formula you
typed...

=AVERAGE(IF(A1:A12<0,A1:A12)) also no good :(

Any ideas - Thanks









  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Find negative numbers

Maybe...

Maybe you have a list separator of semicolon (;) instead of comma (,).

Try changing the formula to:
=SUMIF(A1:A12;"0";A1:A12)
(same kind of thing with the other formulas, too)

===
If that's not it, I think you're going to have to explain what you mean.

Can you enter the formula?
Does it evaluate incorrectly?


Kitty wrote:

On Tue, 10 Oct 2006 13:31:38 GMT, Kitty wrote:

Hi and thanks but I can't get it to work :( I think it maight have to
do with the syntax somehow I'm on a international pc with an english
version of excel 2003

I have made a fresh new file with the follwing numbers

Column <A
7,11
-0,52
13,47
12,72
-9,21
1,95
2,71
-1,95
15,45
7,85
-11,34
-12,39

This formula =SUM(A1:A12) works and gives the result
of 25,85 Note the comma as separator.

I can also do this =AVERAGE(A1:A12) which gives 2,15

But I can't do this =SUMIF(A1:A12,"0",A1:A12) "the formula you
typed...

=AVERAGE(IF(A1:A12<0,A1:A12)) also no good :(

Any ideas - Thanks


--

Dave Peterson
  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Find negative numbers

=sumif() and =countif() aren't part of the Analysis Toolpak.

Kevin B wrote:

Click Tools and select ADD-INS and see if you have the Analysis Toolpack
running, if not click the checkbox to turn it on. The SUMIF and COUNTIF
should work once it's activated
--
Kevin Backmann

"Kitty" wrote:

On Tue, 10 Oct 2006 13:31:38 GMT, Kitty wrote:


Hi and thanks but I can't get it to work :( I think it maight have to
do with the syntax somehow I'm on a international pc with an english
version of excel 2003

I have made a fresh new file with the follwing numbers

Column <A
7,11
-0,52
13,47
12,72
-9,21
1,95
2,71
-1,95
15,45
7,85
-11,34
-12,39

This formula =SUM(A1:A12) works and gives the result
of 25,85 Note the comma as separator.

I can also do this =AVERAGE(A1:A12) which gives 2,15

But I can't do this =SUMIF(A1:A12,"0",A1:A12) "the formula you
typed...

=AVERAGE(IF(A1:A12<0,A1:A12)) also no good :(

Any ideas - Thanks








--

Dave Peterson
  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Find negative numbers

On Tue, 10 Oct 2006 13:31:38 GMT, Kitty wrote:


Matter solved - The machine is using semicolons like this

=SUMIF(A1:A7;"<0";A1:A7)/COUNTIF(A1:A7;"<0")

as list separator. So all the formulas are now working ;-)

Thanks for your time. Love you all,
Kitty



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
A Macro to find missing serial numbers in a column Khoshravan Excel Discussion (Misc queries) 9 August 6th 06 10:37 AM
Converting positive numbers to negative numbers Treg67 Excel Worksheet Functions 4 July 17th 06 03:57 PM
How do I find the 12 highest numbers in a row of 52 numbers Johnny Excel Worksheet Functions 3 July 8th 06 11:58 PM
Changing negative numbers to zero Chet T Excel Discussion (Misc queries) 5 October 7th 05 02:11 PM
Compare Negative & Positive Numbers chom New Users to Excel 3 July 28th 05 08:26 AM


All times are GMT +1. The time now is 09:02 PM.

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"