SumIf

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.
 
S

Sandy Mann

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
 
M

Marcelo

=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:
 
L

Lars-Åke Aspelin

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top