#1   Report Post  
Mark Dvorkin
 
Posts: n/a
Default SUMIF function

I have in column A negative and positive values.
I'd like to sum-up all negative values in that column in a given range
(say A2:A5)
using SUMIF() and place the result in a cell D20:

A
-3
-1
-5
2
-4
-22
12

I attempted to SUMIF(A2:A5, (A2:A5)<0, A2:A5)
The function returns zero, but silly me expected -10

Any help is greatly appreciated,
/mark

-

  #2   Report Post  
Vasant Nanavati
 
Posts: n/a
Default

=SUMIF(A2:A5,"<0")

--

Vasant

"Mark Dvorkin" wrote in message
...
I have in column A negative and positive values.
I'd like to sum-up all negative values in that column in a given range
(say A2:A5)
using SUMIF() and place the result in a cell D20:

A
-3
-1
-5
2
-4
-22
12

I attempted to SUMIF(A2:A5, (A2:A5)<0, A2:A5)
The function returns zero, but silly me expected -10

Any help is greatly appreciated,
/mark

-



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
How to nest a left function within a sumif function? LisaK Excel Worksheet Functions 2 April 23rd 23 11:46 AM
SUMIF function yak10 Excel Worksheet Functions 0 February 12th 05 05:12 PM
SUMIF function yak10 Excel Worksheet Functions 3 February 12th 05 01:15 AM
SUMIF - Range name to used for the "sum_range" portion of a SUMIF function Oscar Excel Worksheet Functions 2 January 11th 05 11:01 PM
how do you do a sumif function on more than one worksheet? BMWPRO Excel Worksheet Functions 1 December 6th 04 08:26 PM


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