A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Formula



 
 
Thread Tools Display Modes
  #1  
Old September 19th, 2008, 01:50 PM posted to microsoft.public.excel.worksheet.functions
Mark
external usenet poster
 
Posts: 1,534
Default Formula

I am having trouble with the following formula:

=SUMPRODUCT(--(RBS!A2:A9999="1/4/2008"),--(RBS!A2:A9999="31/3/2009"),--(RBS!M2:M9999="Directors Loan"),RBS!L2:L9999)

It is giving me a "0" as the result. I know this is not the case.

Column A is the date range
Column M is the description of the item
Column L is the cost for the item

If you should have an answer to the above question please let me have it in
the above format for ease of understanding. Many thanks in advance.

Mark


  #2  
Old September 19th, 2008, 02:06 PM posted to microsoft.public.excel.worksheet.functions
Mike H
external usenet poster
 
Posts: 8,419
Default Formula

Mark,

I'd do it like this
=SUMPRODUCT((RBS!A2:A9999=A1)*(RBS!A2:A9999=B1)* (RBS!M2:M9999=C1)*(RBS!L2:L9999))

Where A1 & A2 are the date range and A3 is the text Directors choice

Mike

"Mark" wrote:

I am having trouble with the following formula:

=SUMPRODUCT(--(RBS!A2:A9999="1/4/2008"),--(RBS!A2:A9999="31/3/2009"),--(RBS!M2:M9999="Directors Loan"),RBS!L2:L9999)

It is giving me a "0" as the result. I know this is not the case.

Column A is the date range
Column M is the description of the item
Column L is the cost for the item

If you should have an answer to the above question please let me have it in
the above format for ease of understanding. Many thanks in advance.

Mark


  #3  
Old September 19th, 2008, 02:16 PM posted to microsoft.public.excel.worksheet.functions
Bernie Deitrick
external usenet poster
 
Posts: 2,496
Default Formula

Mark,

You need to convert your date strings to dates:

=SUMPRODUCT((RBS!A2:A9=DATEVALUE("1/4/2008"))*(RBS!A2:A9=DATEVALUE("31/3/2009"))*(RBS!M2:M9="Directors
Loan")*RBS!L2:L9)

Or use cell references....

HTH,
Bernie
MS Excel MVP


"Mark" wrote in message
...
I am having trouble with the following formula:

=SUMPRODUCT(--(RBS!A2:A9999="1/4/2008"),--(RBS!A2:A9999="31/3/2009"),--(RBS!M2:M9999="Directors
Loan"),RBS!L2:L9999)

It is giving me a "0" as the result. I know this is not the case.

Column A is the date range
Column M is the description of the item
Column L is the cost for the item

If you should have an answer to the above question please let me have it in
the above format for ease of understanding. Many thanks in advance.

Mark




 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.