Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default sumif question

I would like to do a sumif and have logical statement to
filter sum values out.


Example:

A Column B Column
S4 1
S5 2
S2 3
S1 100

Sumif(a 1 to 4, <"s4",<"s5","<"S2", b 1 to 4)
= 100.
How do I are the expression to only add the "S1"?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default sumif question

Hi
SUMIF(A1:A4,"S1",B1:B4)

--
Regards
Frank Kabel
Frankfurt, Germany

schrieb im Newsbeitrag
...
I would like to do a sumif and have logical statement to
filter sum values out.


Example:

A Column B Column
S4 1
S5 2
S2 3
S1 100

Sumif(a 1 to 4, <"s4",<"s5","<"S2", b 1 to 4)
= 100.
How do I are the expression to only add the "S1"?


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default sumif question

One of the answers I gave him yesterday.

--
Regards,
Tom Ogilvy

"Frank Kabel" wrote in message
...
Hi
SUMIF(A1:A4,"S1",B1:B4)

--
Regards
Frank Kabel
Frankfurt, Germany

schrieb im Newsbeitrag
...
I would like to do a sumif and have logical statement to
filter sum values out.


Example:

A Column B Column
S4 1
S5 2
S2 3
S1 100

Sumif(a 1 to 4, <"s4",<"s5","<"S2", b 1 to 4)
= 100.
How do I are the expression to only add the "S1"?




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default sumif question

Hi Tom
and probably he hasn't responded :-(
So a waste of time on my side...

--
Regards
Frank Kabel
Frankfurt, Germany

"Tom Ogilvy" schrieb im Newsbeitrag
...
One of the answers I gave him yesterday.

--
Regards,
Tom Ogilvy

"Frank Kabel" wrote in message
...
Hi
SUMIF(A1:A4,"S1",B1:B4)

--
Regards
Frank Kabel
Frankfurt, Germany

schrieb im Newsbeitrag
...
I would like to do a sumif and have logical statement to
filter sum values out.


Example:

A Column B Column
S4 1
S5 2
S2 3
S1 100

Sumif(a 1 to 4, <"s4",<"s5","<"S2", b 1 to 4)
= 100.
How do I are the expression to only add the "S1"?





  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default sumif question

Well, yours was a little bit different: (but conceptually the same) <g

=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

"Frank Kabel" wrote in message
...
Hi Tom
and probably he hasn't responded :-(
So a waste of time on my side...

--
Regards
Frank Kabel
Frankfurt, Germany

"Tom Ogilvy" schrieb im Newsbeitrag
...
One of the answers I gave him yesterday.

--
Regards,
Tom Ogilvy

"Frank Kabel" wrote in message
...
Hi
SUMIF(A1:A4,"S1",B1:B4)

--
Regards
Frank Kabel
Frankfurt, Germany

schrieb im Newsbeitrag
...
I would like to do a sumif and have logical statement to
filter sum values out.


Example:

A Column B Column
S4 1
S5 2
S2 3
S1 100

Sumif(a 1 to 4, <"s4",<"s5","<"S2", b 1 to 4)
= 100.
How do I are the expression to only add the "S1"?









  #6   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default sumif question

Thanks Tom's Solutions worked fine.
Thank you
-----Original Message-----
Hi Tom
and probably he hasn't responded :-(
So a waste of time on my side...

--
Regards
Frank Kabel
Frankfurt, Germany

"Tom Ogilvy" schrieb im Newsbeitrag
...
One of the answers I gave him yesterday.

--
Regards,
Tom Ogilvy

"Frank Kabel" wrote in message
...
Hi
SUMIF(A1:A4,"S1",B1:B4)

--
Regards
Frank Kabel
Frankfurt, Germany

schrieb im Newsbeitrag
...
I would like to do a sumif and have logical

statement to
filter sum values out.


Example:

A Column B Column
S4 1
S5 2
S2 3
S1 100

Sumif(a 1 to 4, <"s4",<"s5","<"S2", b 1 to 4)
= 100.
How do I are the expression to only add the "S1"?





.

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 Question Mark Excel Discussion (Misc queries) 2 April 15th 09 04:28 PM
SUMIF question Shan Excel Discussion (Misc queries) 1 December 3rd 06 03:34 AM
Another SUMIF question tawtrey(remove this )@pacificfoods.com Excel Worksheet Functions 9 May 31st 06 11:04 PM
SUMIF question (I think) Barb Reinhardt Excel Worksheet Functions 1 November 17th 05 02:36 PM
SUMIF Question CLR Excel Discussion (Misc queries) 13 September 20th 05 01:08 AM


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