ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Sumif Help needed (https://www.excelbanter.com/excel-programming/322529-sumif-help-needed.html)

Carl Brehm

Sumif Help needed
 
=SUMIF(A3:A356,MONTH(TODAY())-1,F3:F356) ' works fine
but
=SUMIF(A3:A356,MONTH()=1,F3:F356) 'does not
=SUMIF(A3:A356,MONTH(A3:A356)=1,F3:F356) 'does not
Really need the second line to work

Why? Is there a way around it, not using sumproduct?

--
Carl & Linda Brehm
Lake Lafourche Bird House
Hebert, LA

Keets, Tiels, GN Lories, Quakers
Mitred Conures, TAG's, Bourkes
Lovebirds, Cherry Head Conures
Prince of Whales

Wholesale Cages to Breeders & Pet Stores

NC

Sumif Help needed
 
hi you can try yhe following ARRAY formula.

=SUM(IF(MONTH(A3:A356)=1,F3:F356))

just be sure after entering the formula in formula window press
shift+control+enter & not just enter.

excel will treat this as an array formula and show it as
{=SUM(IF(MONTH(A3:A356)=1,F3:F356))}

hope it solves your problem.

Best Regards
NC


Carl Brehm

Sumif Help needed
 
just be sure after entering the formula in formula window press
shift+control+enter & not just enter.


What difference does that make?

--
Carl & Linda Brehm

"NC" wrote in message
oups.com...
hi you can try yhe following ARRAY formula.

=SUM(IF(MONTH(A3:A356)=1,F3:F356))

just be sure after entering the formula in formula window press
shift+control+enter & not just enter.

excel will treat this as an array formula and show it as
{=SUM(IF(MONTH(A3:A356)=1,F3:F356))}

hope it solves your problem.

Best Regards
NC




NC

Sumif Help needed
 
As already specified in message pressing "Shift+control+enter" after
entering formula makes it be treated as array formula

for more on array formulas visit following url

http://www.cpearson.com/excel/array.htm

Regards
NC



All times are GMT +1. The time now is 06:25 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com