#1   Report Post  
Doug Laidlaw
 
Posts: n/a
Default SUMIF Not <>

I'm trying to sum a column of numbers if they do not equal a particular
value. For example in column A1:A5 I have Blue, Red, Green, Yellow, & Purple.
In B1:B5 I have random values, perhaps 10, 20, 30, 40, & 50.

I want to my SUMIf function to add everything except the Green value which
in this case is 30 per my example. What is the simplest way to acheive this?
Thank you!
  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default

Simplest is probably:

=SUM(B1:B5)-SUMIF(A1:A5,"Green",B1:B5)


In article ,
Doug Laidlaw wrote:

I'm trying to sum a column of numbers if they do not equal a particular
value. For example in column A1:A5 I have Blue, Red, Green, Yellow, & Purple.
In B1:B5 I have random values, perhaps 10, 20, 30, 40, & 50.

I want to my SUMIf function to add everything except the Green value which
in this case is 30 per my example. What is the simplest way to acheive this?

  #3   Report Post  
Harlan Grove
 
Posts: n/a
Default

JE McGimpsey wrote...
Simplest is probably:

=SUM(B1:B5)-SUMIF(A1:A5,"Green",B1:B5)

....

!?

Why not

=SUMIF(A1:A5,"<Green",B1:B5)

?

  #4   Report Post  
JE McGimpsey
 
Posts: n/a
Default

Because I was answering a different question than was asked??? Or
perhaps my head was elsewhere. Dunno...

Thanks for the correction.

In article . com,
"Harlan Grove" wrote:

!?

Why not

=SUMIF(A1:A5,"<Green",B1:B5)

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 use SUMIF to return sums between two values located in cells ScottBerger Excel Worksheet Functions 2 April 23rd 23 09:05 PM
SUMIF DME Excel Discussion (Misc queries) 6 January 30th 05 09:23 PM
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
help with "criterea" in the sumif function [email protected] Excel Worksheet Functions 3 December 17th 04 06:27 PM
SUM(IF( Array to avoid #NUM! values Elijah Excel Worksheet Functions 7 November 21st 04 02:17 PM


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