Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 27
Default Selective addition based on criteria

I have a column of information that contains various numerical entries.

I want to sum the entries to get a total. The entries are both positive and
negative numbers.

If an entry contains the value -250, I want to sum only the negative values
(including the -250 and any other possible -250 entries) omitting any
positive entries. Otherwise it will sum both negative and positive values.

Thank you for your assistance! :)
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 210
Default Selective addition based on criteria

Larry,

To get it into one formula, you can type the following:

=IF(SUM(IF(A1:A4=-250,1,0))0,SUM(IF(A1:A4<0,A1:A4,0)),SUM(A1:A4))

Make the scope of the ranges appropriate and be sure to press
control-shift-enter to let Excel know it is a formulaic array
--
http://HelpExcel.com




"Randy L" wrote:

I have a column of information that contains various numerical entries.

I want to sum the entries to get a total. The entries are both positive and
negative numbers.

If an entry contains the value -250, I want to sum only the negative values
(including the -250 and any other possible -250 entries) omitting any
positive entries. Otherwise it will sum both negative and positive values.

Thank you for your assistance! :)

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 27
Default Selective addition based on criteria

Thank you Galimi. This works great :)

"galimi" wrote:

Larry,

To get it into one formula, you can type the following:

=IF(SUM(IF(A1:A4=-250,1,0))0,SUM(IF(A1:A4<0,A1:A4,0)),SUM(A1:A4))

Make the scope of the ranges appropriate and be sure to press
control-shift-enter to let Excel know it is a formulaic array
--
http://HelpExcel.com




"Randy L" wrote:

I have a column of information that contains various numerical entries.

I want to sum the entries to get a total. The entries are both positive and
negative numbers.

If an entry contains the value -250, I want to sum only the negative values
(including the -250 and any other possible -250 entries) omitting any
positive entries. Otherwise it will sum both negative and positive values.

Thank you for your assistance! :)

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
counting occurences based on two criteria nackington Excel Discussion (Misc queries) 6 April 20th 06 01:27 PM
Delete rows based on criteria Chris_t_2k5 Excel Discussion (Misc queries) 2 April 11th 06 01:52 PM
how to count unique values in excel based on multiple criteria IDBUGM Excel Worksheet Functions 3 March 15th 06 04:00 PM
caluculate an average based on 2 criteria [email protected] Excel Discussion (Misc queries) 3 November 3rd 05 03:34 AM
SUMIF in multiple columns based on other criteria in Excel? Scott Powell Excel Discussion (Misc queries) 9 April 13th 05 02:32 PM


All times are GMT +1. The time now is 11:53 AM.

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"