ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   SumIf (https://www.excelbanter.com/excel-discussion-misc-queries/196768-sumif.html)

MadWoman

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

Sandy Mann

SumIf
 
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


Replace @mailinator.com with @tiscali.co.uk


"MadWoman" wrote in message
...
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.




Marcelo

SumIf
 
=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.


Lars-Åke Aspelin[_2_]

SumIf
 
On Tue, 29 Jul 2008 14:13:00 -0700, MadWoman
wrote:

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


All times are GMT +1. The time now is 03:50 AM.

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