Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 112
Default SUMIF Criterion with NOT

Excel 2000

Is there a way to write a SUMIF formula such that one sums rows that
do NOT match the criterion? Something like:

=SUMIF(A3:A1000,NOT("Total*"),C3:C1000)

But the middle item, the criterion, needs to be a string, not a
logical.

Many thanks,

Fred Holmes
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default SUMIF Criterion with NOT

Use the math operators <

=SUMIF(A3:A1000,"<Total*",C3:C1000)

Mike

"Fred Holmes" wrote:

Excel 2000

Is there a way to write a SUMIF formula such that one sums rows that
do NOT match the criterion? Something like:

=SUMIF(A3:A1000,NOT("Total*"),C3:C1000)

But the middle item, the criterion, needs to be a string, not a
logical.

Many thanks,

Fred Holmes

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 112
Default SUMIF Criterion with NOT

Thanks, I'll give it a shot. I would never have expected the math
operators to work inside the quotation marks, i.e., I would expect
that they would be interpreted as characters in the srting to be
matched.

On Fri, 8 Jun 2007 00:48:02 -0700, Mike H
wrote:

Use the math operators <

=SUMIF(A3:A1000,"<Total*",C3:C1000)

Mike

"Fred Holmes" wrote:

Excel 2000

Is there a way to write a SUMIF formula such that one sums rows that
do NOT match the criterion? Something like:

=SUMIF(A3:A1000,NOT("Total*"),C3:C1000)

But the middle item, the criterion, needs to be a string, not a
logical.

Many thanks,

Fred Holmes


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default SUMIF Criterion with NOT

It's odd isn't it. It must be because SUMIF doesn't use the operator in its
definition, = is assumed, so if you don't want = you have to be explicit,
and there is nowhere else to put it. I think it probably didn't support <,
and that was how they squeezed it in.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Fred Holmes" wrote in message
...
Thanks, I'll give it a shot. I would never have expected the math
operators to work inside the quotation marks, i.e., I would expect
that they would be interpreted as characters in the srting to be
matched.

On Fri, 8 Jun 2007 00:48:02 -0700, Mike H
wrote:

Use the math operators <

=SUMIF(A3:A1000,"<Total*",C3:C1000)

Mike

"Fred Holmes" wrote:

Excel 2000

Is there a way to write a SUMIF formula such that one sums rows that
do NOT match the criterion? Something like:

=SUMIF(A3:A1000,NOT("Total*"),C3:C1000)

But the middle item, the criterion, needs to be a string, not a
logical.

Many thanks,

Fred Holmes




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,942
Default SUMIF Criterion with NOT

hi,
try this...
=SUMIF(A3:A1000,"<Total*",C3:C1000)

< = not

Regards
FSt1

"Fred Holmes" wrote:

Excel 2000

Is there a way to write a SUMIF formula such that one sums rows that
do NOT match the criterion? Something like:

=SUMIF(A3:A1000,NOT("Total*"),C3:C1000)

But the middle item, the criterion, needs to be a string, not a
logical.

Many thanks,

Fred Holmes



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 112
Default SUMIF Criterion with NOT

Actually, the suggested "<Total*" appears to work just fine.

It is logically equivalent to your suggested "<"&"Total*".

Originally, I didn't think of using wild cards in the string, but that
does seem to make sense.

Fred Holmes

On Fri, 8 Jun 2007 08:08:50 -0500, "Don Guillett"
wrote:


"<"& "total"
--
Don Guillett
SalesAid Software

"Fred Holmes" wrote in message
.. .
Excel 2000

Is there a way to write a SUMIF formula such that one sums rows that
do NOT match the criterion? Something like:

=SUMIF(A3:A1000,NOT("Total*"),C3:C1000)

But the middle item, the criterion, needs to be a string, not a
logical.

Many thanks,

Fred Holmes


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
SUMIF criterion to match the first 5 characters. Fred Holmes Excel Worksheet Functions 3 April 24th 23 11:41 AM
Multiple Criterion in a SUMIF function IPerlovsky Excel Worksheet Functions 6 March 9th 07 06:33 PM
Vlookup more than one criterion dee Excel Worksheet Functions 2 June 29th 06 05:01 PM
IF(<criterion across sheets,1,0)? David Excel Worksheet Functions 5 October 29th 05 04:14 PM
How do I put more than one criterion in a SUMIF function? Bryan Brassell Excel Worksheet Functions 4 June 1st 05 11:51 AM


All times are GMT +1. The time now is 09:04 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"