Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / August 2007

Tip: Looking for answers? Try searching our database.

Sumproduct

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Googley - 24 Aug 2007 00:33 GMT
I am currently using the following formula:

=SUMPRODUCT(--(ISNUMBER(FIND("SPGM",'7-14-07'!$E$2:$E$65535))),--
(ISNUMBER('7-14-07'!$Y$2:$Y$65535)),--('7-14-07'!$Y$2:$Y$65535<=$F$3))

this sumproduct matches product codes from work sheet 7-14-07 column
E:E that have the following formats:

2060207-SPGM021
2060207-SPGM022
2060207-SPGM023
2060207-SPGM024
2060207-SPGM025
2060207-SPGM026
2060207-SPGM027

For these product codes it works fine the problem comes in when I need
to match the following product codes;

2060207-SP021
2060207-SP022
2060207-SP023
2060207-SP024
2060207-SP025
2060207-SP026
2060207-SP027

The first 7 digits of the product code are always the same but the
alpha can be 1,2,3,4,5,or 6 characters in length which are always
followed by a three digit number that ranges from 001 thru 999.

The problem is when you sumproduct a "SP" as in the example directly
above but this returns the sum of all "SP" and "SPM" which is where my
problem lies. The remaining part of the formula functions properly
matching dates that are <= F3. I use this to provide all the different
product codes that have been scheduled for production prior to and
including the last day of the month. Any assistance would be greatly
appreciated!
Barb Reinhardt - 24 Aug 2007 01:22 GMT
How about adding something into your sumproduct for length of the entries in
column E.  

I'm going to put SPGM in A1 for this

=SUMPRODUCT(--(ISNUMBER(FIND(A1),'7-14-07'!$E$2:$E$65535))),--
(ISNUMBER('7-14-07'!$Y$2:$Y$65535)),--('7-14-07'!$Y$2:$Y$65535<=$F$3),
--(LEN('7-14-07'!$E$2:$E$65535)=LEN(A1)+11))

I'm not sure if it'll work, but it's the only thing I can think of to get
around your problem.

HTH,
Barb Reinhardt

> I am currently using the following formula:
>
[quoted text clipped - 34 lines]
> including the last day of the month. Any assistance would be greatly
> appreciated!
Don Guillett - 24 Aug 2007 13:52 GMT
Modify this idea to suit. Change 15 to 13 for sp. Suggest changing 65535 to
a more meaningful number.
=SUMPRODUCT((LEN($H$2:$H$22)=15)*(ISNUMBER(FIND("SP",$H$2:$H$22))),$I$2:$I$22)

Signature

Don Guillett
Microsoft MVP Excel
SalesAid Software
dguillett1@austin.rr.com

>
> I am currently using the following formula:
[quoted text clipped - 35 lines]
> including the last day of the month. Any assistance would be greatly
> appreciated!
Googley - 26 Aug 2007 16:44 GMT
> Modify this idea to suit. Change 15 to 13 for sp. Suggest changing 65535 to
> a more meaningful number.
[quoted text clipped - 43 lines]
> > including the last day of the month. Any assistance would be greatly
> > appreciated!

Don,

Fantastic! Thank you!
Don Guillett - 26 Aug 2007 18:14 GMT
Glad to help. Pls TOP post

Signature

Don Guillett
Microsoft MVP Excel
SalesAid Software
dguillett1@austin.rr.com

On Aug 24, 8:52 am, "Don Guillett" <dguille...@austin.rr.com> wrote:
> Modify this idea to suit. Change 15 to 13 for sp. Suggest changing 65535
> to
[quoted text clipped - 47 lines]
> > including the last day of the month. Any assistance would be greatly
> > appreciated!

Don,

Fantastic! Thank you!
Ragdyer - 26 Aug 2007 18:50 GMT
From your mouth to God's ears!<bg>
Signature

Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

> Glad to help. Pls TOP post
>
> On Aug 24, 8:52 am, "Don Guillett" <dguille...@austin.rr.com> wrote:
> > Modify this idea to suit. Change 15 to 13 for sp. Suggest changing 65535
> > to
> > a more meaningful number.

=SUMPRODUCT((LEN($H$2:$H$22)=15)*(ISNUMBER(FIND("SP",$H$2:$H$22))),$I$2:$I$­
22)

> > --
> > Don Guillett
[quoted text clipped - 46 lines]
>
> Fantastic! Thank you!
Harlan Grove - 27 Aug 2007 06:31 GMT
"Don Guillett" <dguillett1@austin.rr.com> wrote...
>Glad to help. Pls TOP post
...

Or bottom-post. Make Don exercise his fingers.
Don Guillett - 27 Aug 2007 13:11 GMT
A pox on your house

Signature

Don Guillett
Microsoft MVP Excel
SalesAid Software
dguillett1@austin.rr.com

> "Don Guillett" <dguillett1@austin.rr.com> wrote...
>>Glad to help. Pls TOP post
> ...
>
> Or bottom-post. Make Don exercise his fingers.
Harlan Grove - 28 Aug 2007 03:30 GMT
"Don Guillett" <dguillett1@austin.rr.com> wrote...
>A pox on your house

Somewhat OT. Have you run out of flawed Excel advice to spew?

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.