#1   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default SUMIF

IF I DO NOT WANT TO SUMIF LABELS S5,S4,S2

a cOL bCOL
s1 100
S2 0
S4 0
S5 25

I WANT MY SUMIF TO EQUAL 100, HOW DO I WRITE THE LOGIC IN
THE SUMIF FUNCTION?




  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default SUMIF

=sumif(A:A,"S1",B:B)

If there are more than the 4 distinct labels and you want to exclude
S5,S4,S2 and sum any other label

=Sum(B:B)-Sum(Sumif(A:A,{"S2","S4","S5"},B:B))

--
Regards,
Tom Ogilvy


wrote in message
...
IF I DO NOT WANT TO SUMIF LABELS S5,S4,S2

a cOL bCOL
s1 100
S2 0
S4 0
S5 25

I WANT MY SUMIF TO EQUAL 100, HOW DO I WRITE THE LOGIC IN
THE SUMIF FUNCTION?






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 Mel Excel Discussion (Misc queries) 6 March 16th 09 05:45 PM
sumif for multi conditions. i.e sumif(A1:A10,"Jon" and B1:B10,"A" Harry Seymour Excel Worksheet Functions 9 June 12th 07 10:47 PM
Embedding a Sumif in a sumif C.Pflugrath Excel Worksheet Functions 5 August 31st 05 07:31 PM
nested sumif or sumif with two criteria dshigley Excel Worksheet Functions 5 April 5th 05 03:34 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


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