Problem with a SUMPRODUCT Formula

C

carl

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

Morrigan

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

Morrigan

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

daddylonglegs

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)
 
C

carl

The data in both fields is the same - I think...

If I send you a sample spreadsheet would it help ?
 
M

Morrigan

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

And then what ? What am I looking for ?
 

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