help with sumproduct function

S

Shashi Bhosale

I am using Excel 2003.

I think this formula use to work fine in Excel 97 but doesn't not work with
2003.

=SUMPRODUCT((TRIM(DataCustNum)={24103,24102})*

(DataOrderDate>=Period1Start)*

(DataOrderDate<=Period1End)*

(DataAmount)

)

This also dont work fine but when i put quotes ("") for 24103 it works. I
think both these examples worked fine in Excel 97

=SUMPRODUCT((TRIM(DataCustNum)=24103)*

(DataOrderDate>=Period1Start)*

(DataOrderDate<=Period1End)*

(DataAmount)

)

Please help.
 
D

Dave Peterson

I don't have xl97 any more, but =trim() returns a text string. It seems that
those double quotes would be reasonable.

Maybe someone with xl97 would verify--one way or the other.
 

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