Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Tia
 
Posts: n/a
Default Formula to ignore negative numbers in a column?

I have a lengthy spreadsheet with several columns of numerical data. Some
cells have positive numbers and others have negative numbers. My goal is to
get both a column sum and average--but only of only those cells with a
positive number--i would like to exclude the negative numbers from my
calculations.

Are there formulas that will so this for me?
--
Tia, Education and Documentation Specialist
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bernie Deitrick
 
Posts: n/a
Default Formula to ignore negative numbers in a column?

Tia,

Sum:
=SUMIF(D:D,"0")

Average:
=SUMIF(D:D,"0")/COUNTIF(D:D,"0")

HTH,
Bernie
MS Excel MVP


"Tia" wrote in message
...
I have a lengthy spreadsheet with several columns of numerical data. Some
cells have positive numbers and others have negative numbers. My goal is to
get both a column sum and average--but only of only those cells with a
positive number--i would like to exclude the negative numbers from my
calculations.

Are there formulas that will so this for me?
--
Tia, Education and Documentation Specialist



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Coderre
 
Posts: n/a
Default Formula to ignore negative numbers in a column?

Try something like this:

With values in cells A1:A10

Greater than zero:
SUM
B1: =SUMIF(A1:A10,"0")
AVERAGE
B2: =SUMIF(A1:A10,"0")/COUNTIF(A1:A10,"0")

Greater than or equal to zero:
SUM
B1: =SUMIF(A1:A10,"=0")
AVERAGE
B2: =SUMIF(A1:A10,"=0")/COUNTIF(A1:A10,"=0")

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"Tia" wrote:

I have a lengthy spreadsheet with several columns of numerical data. Some
cells have positive numbers and others have negative numbers. My goal is to
get both a column sum and average--but only of only those cells with a
positive number--i would like to exclude the negative numbers from my
calculations.

Are there formulas that will so this for me?
--
Tia, Education and Documentation Specialist

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dana DeLouis
 
Posts: n/a
Default Formula to ignore negative numbers in a column?

Another option for Average using an Array formula:
=AVERAGE(IF(Rng0,Rng))

Rng being a range name of say A1:A10
--
HTH. :)
Dana DeLouis
Windows XP, Office 2003


"Tia" wrote in message
...
I have a lengthy spreadsheet with several columns of numerical data. Some
cells have positive numbers and others have negative numbers. My goal is
to
get both a column sum and average--but only of only those cells with a
positive number--i would like to exclude the negative numbers from my
calculations.

Are there formulas that will so this for me?
--
Tia, Education and Documentation Specialist



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 to Improve Code Copying/Pasting Between Workbooks David Excel Discussion (Misc queries) 1 January 6th 06 03:56 AM
formula for negative and positive numbers in different columns s.m.hardin Excel Worksheet Functions 5 December 29th 05 06:59 PM
How do I change a column of 500 numbers from positive to negative JKB Excel Discussion (Misc queries) 2 September 28th 05 04:16 PM
How do I change the plus to a negative in a column of numbers? JKB Excel Worksheet Functions 2 August 3rd 05 02:24 PM
FORMULA TO ADD POSITIVE AND NEGATIVE NUMBERS, REGARDLESS OF SIGN JON Excel Discussion (Misc queries) 3 July 18th 05 06:35 PM


All times are GMT +1. The time now is 09:23 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"