ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Problem with a SUMPRODUCT Formula (https://www.excelbanter.com/excel-worksheet-functions/78477-problem-sumproduct-formula.html)

carl

Problem with a SUMPRODUCT Formula
 
This formula works:

=SUMPRODUCT(--(AMS!$C$4:$C$60000="InitialOrderEntry");--(AMS!$Z$4:AMS!$Z$60000=17);--(AMS!$AB$4:$AB$60000=226);--(AMS!$AS$4:$AS$60000=$A$1);--(AMS!$J$4:$J$60000))

When I add this condition: (AMS!$B$4:$B$60000=Summary!C3)

=SUMPRODUCT(--(AMS!$C$4:$C$60000="InitialOrderEntry");--(AMS!$B$4:$B$60000=Summary!C3);--(AMS!$Z$4:AMS!$Z$60000=17);--(AMS!$AB$4:$AB$60000=226);--(AMS!$AS$4:$AS$60000=$A$1);--(AMS!$J$4:$J$60000))

The formula returns "0" - which is incorrect. The data in AMS!$B$4:$B$60000
looks like this - 20060314. The criteria in Summary!C3 is copied from
AMS!$B$4:$B$60000.

What am I doing wrong ?

Thank you in advance.

Morrigan

Problem with a SUMPRODUCT Formula
 

I am guessing this is one of those instants where Test to Columns may
help. Apply Data - Test to columns - Finish to the 2 columns
Summary!C and AMS!B.


--
Morrigan
------------------------------------------------------------------------
Morrigan's Profile: http://www.excelforum.com/member.php...fo&userid=7094
View this thread: http://www.excelforum.com/showthread...hreadid=524394


Morrigan

Problem with a SUMPRODUCT Formula
 

I am guessing this is one of those instants where Test to Columns may
help. Apply Data - Test to columns - Finish to the 2 columns
Summary!C and AMS!B.


--
Morrigan
------------------------------------------------------------------------
Morrigan's Profile: http://www.excelforum.com/member.php...fo&userid=7094
View this thread: http://www.excelforum.com/showthread...hreadid=524394


daddylonglegs

Problem with a SUMPRODUCT Formula
 

What do you have in AMS!$B$4:$B$60000, are they dates? If so try

(TEXT(AMS!$B$4:$B$60000,"yyyymmdd")=Summary!C3)


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=524394


carl

Problem with a SUMPRODUCT Formula
 
Thank you. Not sure what you are refering to. can you please elaborate ?

"Morrigan" wrote:


I am guessing this is one of those instants where Test to Columns may
help. Apply Data - Test to columns - Finish to the 2 columns
Summary!C and AMS!B.


--
Morrigan
------------------------------------------------------------------------
Morrigan's Profile: http://www.excelforum.com/member.php...fo&userid=7094
View this thread: http://www.excelforum.com/showthread...hreadid=524394



carl

Problem with a SUMPRODUCT Formula
 
The data in both fields is the same - I think...

If I send you a sample spreadsheet would it help ?



"daddylonglegs" wrote:


What do you have in AMS!$B$4:$B$60000, are they dates? If so try

(TEXT(AMS!$B$4:$B$60000,"yyyymmdd")=Summary!C3)


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=524394



Morrigan

Problem with a SUMPRODUCT Formula
 

carl Wrote:
Thank you. Not sure what you are refering to. can you please elaborate
?

"Morrigan" wrote:


I am guessing this is one of those instants where Test to Columns

may
help. Apply Data - Test to columns - Finish to the 2 columns
Summary!C and AMS!B.


--
Morrigan

------------------------------------------------------------------------
Morrigan's Profile:

http://www.excelforum.com/member.php...fo&userid=7094
View this thread:

http://www.excelforum.com/showthread...hreadid=524394





Highlight the 2 columns, go to Data - Text to columns - click Finish


--
Morrigan
------------------------------------------------------------------------
Morrigan's Profile: http://www.excelforum.com/member.php...fo&userid=7094
View this thread: http://www.excelforum.com/showthread...hreadid=524394


carl

Problem with a SUMPRODUCT Formula
 
And then what ? What am I looking for ?

"Morrigan" wrote:


carl Wrote:
Thank you. Not sure what you are refering to. can you please elaborate
?

"Morrigan" wrote:


I am guessing this is one of those instants where Test to Columns

may
help. Apply Data - Test to columns - Finish to the 2 columns
Summary!C and AMS!B.


--
Morrigan

------------------------------------------------------------------------
Morrigan's Profile:

http://www.excelforum.com/member.php...fo&userid=7094
View this thread:

http://www.excelforum.com/showthread...hreadid=524394





Highlight the 2 columns, go to Data - Text to columns - click Finish


--
Morrigan
------------------------------------------------------------------------
Morrigan's Profile: http://www.excelforum.com/member.php...fo&userid=7094
View this thread: http://www.excelforum.com/showthread...hreadid=524394



Morrigan

Problem with a SUMPRODUCT Formula
 

Hmm.....that's it. If that didn't fix it, it's probably not due to the
misinterpretation of copy and paste from other sources.


carl Wrote:
And then what ? What am I looking for ?

"Morrigan" wrote:


carl Wrote:
Thank you. Not sure what you are refering to. can you please

elaborate
?

"Morrigan" wrote:


I am guessing this is one of those instants where Test to

Columns
may
help. Apply Data - Test to columns - Finish to the 2 columns
Summary!C and AMS!B.


--
Morrigan


------------------------------------------------------------------------
Morrigan's Profile:
http://www.excelforum.com/member.php...fo&userid=7094
View this thread:
http://www.excelforum.com/showthread...hreadid=524394





Highlight the 2 columns, go to Data - Text to columns - click

Finish


--
Morrigan

------------------------------------------------------------------------
Morrigan's Profile:

http://www.excelforum.com/member.php...fo&userid=7094
View this thread:

http://www.excelforum.com/showthread...hreadid=524394




--
Morrigan
------------------------------------------------------------------------
Morrigan's Profile: http://www.excelforum.com/member.php...fo&userid=7094
View this thread: http://www.excelforum.com/showthread...hreadid=524394



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

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