View Single Post
  #6   Report Post  
Posted to microsoft.public.excel.misc
excel guru i''m not
 
Posts: n/a
Default sumproduct 2 columns based on criteria in 3rd column

Like magic! I don't know how you all learned this stuff, but I sure am glad
you are there to help me!

"Bob Phillips" wrote:

Your formula would have worked fine if you had got the brackets in the right
place

=SUMPRODUCT($I$4:$I$97,--(MONTH($L$4:$L$97)=1),--($L$4:$L$97<""))+SUMPRODUC
T(N4:N97,--(MONTH(L4:L97)=1),--(L4:L97<""))

But it can be done better with

=SUMPRODUCT(--(MONTH($L$4:$L$97)=1),--($L$4:$L$97<""),($I$4:$I$97+$N$4:$N$9
7))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"excel guru i''m not" wrote in
message ...
Right now this is my formula and it is giving me a dollar amount over $1
million when the answer should be $4228.50 plus $295.


=SUMPRODUCT($I$4:$I$97,--(MONTH($L$4:$L$97)=1),--($L$4:$L$97<"")+SUMPRODUCT
(N4:N97,--(MONTH(L4:L97)=1),--(L4:L97<"")))

"Bernard Liengme" wrote:

Do you want to SUM the A and B values for all non-blank C's ?
Gives us a little more info.

--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"excel guru i''m not" wrote

in
message ...
Can someone help me to with this formula?

I have 3 columns. Two of them have dollar amounts and the third one a
date.
How to I add the 2 columns based on the date in the third column

without
counting blank fields.

A 4,228.50
B 295.00
C January 12, 2005