SumIf

  • Thread starter Thread starter MadWoman
  • Start date Start date
M

MadWoman

I tried the formula below in my database and I get a 0 as an answer.
=SUMPRODUCT((Data!B1:B20000="Access
Nurses")*(Data!Q1:Q20000="Apr-08")*(L1:L20000))

Can someone tell me what I'm doing wrong and how to correct?

Column B contains different vendor names, column Q contains the month of the
transaction and colum L contains a subtotaled dollar amount.
 
Are the months of transaction really XL dates? If so try:

=SUMPRODUCT((Data!B1:B20000="Access
Nurses")*(MONTH(Data!Q1:Q20000)=4)*L1:L20000)

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings

(e-mail address removed)
Replace @mailinator.com with @tiscali.co.uk
 
=SUMPRODUCT((Data!B1:B20000="Access
Nurses")*(Data!Q1:Q20000="Apr-08"),(L1:L20000))

hth
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"MadWoman" escreveu:
 
I tried the formula below in my database and I get a 0 as an answer.
=SUMPRODUCT((Data!B1:B20000="Access
Nurses")*(Data!Q1:Q20000="Apr-08")*(L1:L20000))

Can someone tell me what I'm doing wrong and how to correct?

Column B contains different vendor names, column Q contains the month of the
transaction and colum L contains a subtotaled dollar amount.


If the three columns are all in the same worksheet, which is not the
same sheet as where the formula is, then there is a missing Data!
before L1 in the last paranthesis.

Hope this helps / Lars-Åke
 
Back
Top