A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

sumif..



 
 
Thread Tools Display Modes
  #1  
Old April 9th, 2010, 03:51 AM posted to microsoft.public.excel.worksheet.functions
nordiyu
external usenet poster
 
Posts: 11
Default sumif..

my condition is :
A B C
1 Date Name $
2 15/2/10 John 15
3 16/2/10 Mike 8
4 28/2/10 John 21
5 01/3/10 John 10
6 05/3/10 Mike 15


What the formula to get total $ John in month feb. / mar

Name Total $ Feb Total $ Mar
John ? ?



Rgds,
  #2  
Old April 9th, 2010, 05:13 AM posted to microsoft.public.excel.worksheet.functions
Fred Smith[_4_]
external usenet poster
 
Posts: 2,386
Default sumif..

=sumproduct(--(text(a2:a6,"yyyymm")="201002"),--(b2:b6="John"),(c2:c6))

Or, a Pivot Table.

Regards,
Fred

"nordiyu" wrote in message
...
my condition is :
A B C
1 Date Name $
2 15/2/10 John 15
3 16/2/10 Mike 8
4 28/2/10 John 21
5 01/3/10 John 10
6 05/3/10 Mike 15


What the formula to get total $ John in month feb. / mar

Name Total $ Feb Total $ Mar
John ? ?



Rgds,


  #3  
Old April 9th, 2010, 08:30 AM posted to microsoft.public.excel.worksheet.functions
MS-Exl-Learner
external usenet poster
 
Posts: 135
Default sumif..

If you want to sum all the C Column values of John then use the below formula.
=SUMIF(B:B,"JOHN",C:C)

If you want to sum the values of John based on the DATE FALLING ONLY IN
FEBRUARY then use the below formula.
=SUMPRODUCT((A2:A200=DATE(2010,2,1))*(A2:A200=DA TE(2010,2,28))*(B2:B200="JOHN"),(C2:C200))

If you want to sum the values of John based on the DATE FALLING FROM
FEBRUARY TO MARCH then use the below formula.
=SUMPRODUCT((A2:A200=DATE(2010,2,1))*(A2:A200=DA TE(2010,2,31))*(B2:B200="JOHN"),(C2:C200))

--
Remember to Click Yes, if this post helps!

--------------------
(Ms-Exl-Learner)
--------------------


"nordiyu" wrote:

my condition is :
A B C
1 Date Name $
2 15/2/10 John 15
3 16/2/10 Mike 8
4 28/2/10 John 21
5 01/3/10 John 10
6 05/3/10 Mike 15


What the formula to get total $ John in month feb. / mar

Name Total $ Feb Total $ Mar
John ? ?



Rgds,

  #4  
Old April 12th, 2010, 08:25 AM posted to microsoft.public.excel.worksheet.functions
Ashish Mathur[_2_]
external usenet poster
 
Posts: 1,764
Default sumif..

Hi,

You may also create a pivot table, where you may drag names to the row area,
dates to the column area and US$ to the data area. Now click on any data in
the column area of the pivot and Group the dates by months

--
Regards,

Ashish Mathur
Microsoft Excel MVP

"nordiyu" wrote in message
...
my condition is :
A B C
1 Date Name $
2 15/2/10 John 15
3 16/2/10 Mike 8
4 28/2/10 John 21
5 01/3/10 John 10
6 05/3/10 Mike 15


What the formula to get total $ John in month feb. / mar

Name Total $ Feb Total $ Mar
John ? ?



Rgds,


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.