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 cells in column contain specific month



 
 
Thread Tools Display Modes
  #1  
Old April 8th, 2004, 12:18 AM
external usenet poster
 
Posts: n/a
Default SUMIF cells in column contain specific month

Assume that column A (rows 2-7)has dates in it and Column
B (rows 2-6)has $ amounts. I want to sum the amounts in
Column B for those rwos where the month in column A is
March. The formula "=SUMIF(MONTH(A2:A7),3,B2:B7)" doesn't
work. Can anyone help?
  #2  
Old April 8th, 2004, 12:24 AM
Frank Kabel
external usenet poster
 
Posts: n/a
Default SUMIF cells in column contain specific month

Hi
try
=SUMPRODUCT(--(MONTH(A2:A7)=3),B2:B7)

--
Regards
Frank Kabel
Frankfurt, Germany

schrieb im Newsbeitrag
...
Assume that column A (rows 2-7)has dates in it and Column
B (rows 2-6)has $ amounts. I want to sum the amounts in
Column B for those rwos where the month in column A is
March. The formula "=SUMIF(MONTH(A2:A7),3,B2:B7)" doesn't
work. Can anyone help?


  #3  
Old April 8th, 2004, 12:28 AM
Norman Harker
external usenet poster
 
Posts: n/a
Default SUMIF cells in column contain specific month

Hi aploshnick!

One way:
=SUMPRODUCT(--(MONTH(A1:A7)=3),(B1:B7))

MONTH(A1:A7)=3 is an implicit IF statement and the -- coerces the
response of TRUE and FALSE to 1 and 0.

--
Regards
Norman Harker MVP (Excel)
Sydney, Australia

Excel and Word Function Lists (Classifications, Syntax and Arguments)
available free to good homes.
wrote in message
...
Assume that column A (rows 2-7)has dates in it and Column
B (rows 2-6)has $ amounts. I want to sum the amounts in
Column B for those rwos where the month in column A is
March. The formula "=SUMIF(MONTH(A2:A7),3,B2:B7)" doesn't
work. Can anyone help?



  #4  
Old April 8th, 2004, 12:49 AM
external usenet poster
 
Posts: n/a
Default SUMIF cells in column contain specific month

A million thanks
-----Original Message-----
Hi aploshnick!

One way:
=SUMPRODUCT(--(MONTH(A1:A7)=3),(B1:B7))

MONTH(A1:A7)=3 is an implicit IF statement and the --

coerces the
response of TRUE and FALSE to 1 and 0.

--
Regards
Norman Harker MVP (Excel)
Sydney, Australia

Excel and Word Function Lists (Classifications, Syntax

and Arguments)
available free to good homes.
wrote in message
...
Assume that column A (rows 2-7)has dates in it and

Column
B (rows 2-6)has $ amounts. I want to sum the amounts in
Column B for those rwos where the month in column A is
March. The formula "=SUMIF(MONTH(A2:A7),3,B2:B7)"

doesn't
work. Can anyone help?



.

 




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 04:35 PM.


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