sumproduct 2 columns based on criteria in 3rd column

  • Thread starter excel guru i''m not
  • Start date
E

excel guru i''m not

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
 
B

Bernard Liengme

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

excel guru i''m not

For the 3 columns I am trying to add by month the amount of money paid. So I
would be paid $4,288.50 in column A plus $295 in column B and I need it to
add those two together for the month, each month. However the rest of rows
may be blank until dollars are paid and entered into those rows. So I don't
want it to count the blank rows as January.

Does that make better sense?
 
E

excel guru i''m not

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<>"")))
 
B

Bob Phillips

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)
 
E

excel guru i''m not

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