LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #12   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 709
Default Another SUMPRODUCT giving the incorrect number

Thank you Sloth.

You help is much appreciated.
--
Richard


"Sloth" wrote:

If you have non-numerical data in columns E through P you will have to use
the N() function like this...

=SUMPRODUCT(--(Data!$A$1:$A$10000=DATE(2007,4,1)),--(Data!$A$1:$A$10000<=DATE(2008,3,31)),--(Data!$D$1:$D$10000="Yes"),--(Data!$B$1:$B$10000="Housing
Building
Services"),N(Data!$E$1:$E$10000)+N(Data!$F$1:$F$10 000)+N(Data!$G$1:$G$10000)+N(Data!$H$1:$H$10000)+N (Data!$I$1:$I$10000)+N(Data!$J$1:$J$10000)+N(Data! $K$1:$K$10000)+N(Data!$L$1:$L$10000)+N(Data!$M$1:$ M$10000)+N(Data!$N$1:$N$10000)+N(Data!$O$1:$O$1000 0)+N(Data!$P$1:$P$10000)

It would be easier to use a column to sum E-P across in column Q, and then
put Q1:Q10000 in the SUMPRODUCT formula.

NOTE: Apparently I never learned my ABC's. I skipped column N in my
original formula. :)

"Richard" wrote:

Thank you Sloth.

You are correct in what I want the formula to do. I used the formula you
have kindly done for me, but the cell is still displaying #VALUE!

Any ideas?
--
Richard


"Sloth" wrote:

=SUMPRODUCT(--(Data!$A$1:$A$10000=DATE(2007,4,1)),--(Data!$A$1:$A$10000<=DATE(2008,3,31)),--(Data!$D$1:$D$10000="Yes"),--(Data!$B$1:$B$10000="Housing
Building
Services"),Data!$E$1:$E$10000+Data!$F$1:$F$10000+D ata!$G$1:$G$10000+Data!$H$1:$H$10000+Data!$I$1:$I$ 10000+Data!$J$1:$J$10000+Data!$K$1:$K$10000+Data!$ L$1:$L$10000+Data!$M$1:$M$10000+Data!$O$1:$O$10000 +Data!$P$1:$P$10000)

try the above formula. SUM(Data!$E$1:$P$10000) won't work the way you
describe you want it to. It will simply sum all the numbers and add that
value each time all the cases are true. I am assuming you want to SUM across
for each row, and add that value to the total if all the other cases are
true. IF that's the case, then the above formula should work for you.

"Richard" wrote:

I have another question about a SUMPRODUCT I am using.

I am using Windows XP and Excel 2000.

Here is the formula:

=SUMPRODUCT(--(Data!$A$1:$A$10000=DATE(2007,4,1)),--(Data!$A$1:$A$10000<=DATE(2008,3,31)),--(Data!$D$1:$D$10000="Yes"),--(Data!$B$1:$B$10000="Housing
Building Services")*SUM(Data!$E$1:$P$10000))

This formula needs to SUM a total of number in cells E1:P10000 where there
is a 'Yes' in cells D1:D10000 and 'Housing Building Services' is in cells
B1:B10000.

At the moment the formula seems to be doing a SUM of all numbers in
E1:P10000 and then multiplying that number by 2.

The number should be displaying 18 but instead it is displaying 156.

Any idea where I am going wrong.

Again many thanks for any help with this.

--
Richard

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
SUMPRODUCT is giving incorrect number Richard Excel Discussion (Misc queries) 2 June 22nd 07 11:17 AM
SUMPRODUCT - Giving me trouble porter444 Excel Worksheet Functions 3 May 22nd 07 11:04 AM
Sumproduct giving #NA Gary Excel Worksheet Functions 2 August 3rd 06 11:47 AM
Very large workbook now giving incorrect results :( [email protected] Excel Discussion (Misc queries) 0 July 17th 06 11:29 PM
Formula giving incorrect answer... Jambruins Excel Discussion (Misc queries) 3 February 25th 05 06:59 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"