Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 54
Default Sumproduct - formula to return data OTHER than given criteria

Just rec'd speedy and really helpful answers regarding my Q on multiple
criteria, but I should have also asked the correct formula for quantifying
values OTHER THAN nominated criteria:
1. if J2:J1180 contains data OTHER than "a", "m", "d", how do I adjust the
following formula to calculate this?
=SUMPRODUCT((C2:C1180=L10)*(LEFT(J2:J1180)={"a","m ","d"}))
2. Is there a way of displaying (identifying) what that OTHER data may be
in a column other that the criteria specified? That is, returning whatever
info that doesn't fit the given criteria. How wd I tweak the following
formula to do this (if it is at all possible)?
=SUMPRODUCT((C2:C1180=L10)*(LEFT(J2:J1180)={"a","d ssn"}))
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,441
Default Sumproduct - formula to return data OTHER than given criteria

1)

=SUMPRODUCT(--(C2:C1180=L10))-SUMPRODUCT((C2:C1180=L10)*(LEFT(J2:J1180,1)={"a"," m","d"}))

2)

In another column, use a formula like

=IF(SUMPRODUCT(--(LEFT(J2,1)={"a","m","d"}))=0,IF(COUNTIF($J$2:J2,J 2)=1,J2,""),"")

then copy down, and use filters to show non-blamk values.

HTH,
Bernie
"Twishlist" wrote in message
...
Just rec'd speedy and really helpful answers regarding my Q on multiple
criteria, but I should have also asked the correct formula for quantifying
values OTHER THAN nominated criteria:
1. if J2:J1180 contains data OTHER than "a", "m", "d", how do I adjust
the
following formula to calculate this?
=SUMPRODUCT((C2:C1180=L10)*(LEFT(J2:J1180)={"a","m ","d"}))
2. Is there a way of displaying (identifying) what that OTHER data may be
in a column other that the criteria specified? That is, returning
whatever
info that doesn't fit the given criteria. How wd I tweak the following
formula to do this (if it is at all possible)?
=SUMPRODUCT((C2:C1180=L10)*(LEFT(J2:J1180)={"a","d ssn"}))



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Sumproduct - formula to return data OTHER than given criteria

if J2:J1180 contains data OTHER than "a", "m", "d",
how do I adjust the following formula to calculate this?
=SUMPRODUCT((C2:C1180=L10)*(LEFT(J2:J1180)={"a"," m","d"}))


So, you want to count all cells that *are not* a, m or d?

=SUMPRODUCT(--(C2:C1180=L10),--(ISNA(MATCH(LEFT(J2:J1180),{"a","m","d"},0))))

That will also count empty/blank cells because they meet the condition of
*not being* either a, d or m. To exclude possible empty/blank cells:

=SUMPRODUCT(--(C2:C1180=L10),--(J2:J1180<""),--(ISNA(MATCH(LEFT(J2:J1180),{"a","m","d"},0))))

2. Is there a way of displaying (identifying) what that OTHER data may be
in a column other that the criteria specified? That is, returning
whatever
info that doesn't fit the given criteria. How wd I tweak the following
formula to do this (if it is at all possible)?
=SUMPRODUCT((C2:C1180=L10)*(LEFT(J2:J1180)={"a","d ssn"}))


Not sure I follow you on that. You want to list all cells in J2:J1180 that
don't start with a, m or d?

--
Biff
Microsoft Excel MVP


"Twishlist" wrote in message
...
Just rec'd speedy and really helpful answers regarding my Q on multiple
criteria, but I should have also asked the correct formula for quantifying
values OTHER THAN nominated criteria:
1. if J2:J1180 contains data OTHER than "a", "m", "d", how do I adjust
the
following formula to calculate this?
=SUMPRODUCT((C2:C1180=L10)*(LEFT(J2:J1180)={"a","m ","d"}))
2. Is there a way of displaying (identifying) what that OTHER data may be
in a column other that the criteria specified? That is, returning
whatever
info that doesn't fit the given criteria. How wd I tweak the following
formula to do this (if it is at all possible)?
=SUMPRODUCT((C2:C1180=L10)*(LEFT(J2:J1180)={"a","d ssn"}))



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 54
Default Sumproduct - formula to return data OTHER than given criteria

Thank you for the first answer, I'll try it shortly and confirm.
With regard to the second question,: Ideally, the formula would produce a
list of all item codes featured in j2:j1180 that fall outside the nominated
criteria. The problem arises that when I specify criteria, such as
commencing with "a", there may be other item codes in this column of which
I'm unaware (until my numbers don't correspond). Then I can only locate them
by perusing manually.

"T. Valko" wrote:

if J2:J1180 contains data OTHER than "a", "m", "d",
how do I adjust the following formula to calculate this?
=SUMPRODUCT((C2:C1180=L10)*(LEFT(J2:J1180)={"a"," m","d"}))


So, you want to count all cells that *are not* a, m or d?

=SUMPRODUCT(--(C2:C1180=L10),--(ISNA(MATCH(LEFT(J2:J1180),{"a","m","d"},0))))

That will also count empty/blank cells because they meet the condition of
*not being* either a, d or m. To exclude possible empty/blank cells:

=SUMPRODUCT(--(C2:C1180=L10),--(J2:J1180<""),--(ISNA(MATCH(LEFT(J2:J1180),{"a","m","d"},0))))

2. Is there a way of displaying (identifying) what that OTHER data may be
in a column other that the criteria specified? That is, returning
whatever
info that doesn't fit the given criteria. How wd I tweak the following
formula to do this (if it is at all possible)?
=SUMPRODUCT((C2:C1180=L10)*(LEFT(J2:J1180)={"a","d ssn"}))


Not sure I follow you on that. You want to list all cells in J2:J1180 that
don't start with a, m or d?

--
Biff
Microsoft Excel MVP


"Twishlist" wrote in message
...
Just rec'd speedy and really helpful answers regarding my Q on multiple
criteria, but I should have also asked the correct formula for quantifying
values OTHER THAN nominated criteria:
1. if J2:J1180 contains data OTHER than "a", "m", "d", how do I adjust
the
following formula to calculate this?
=SUMPRODUCT((C2:C1180=L10)*(LEFT(J2:J1180)={"a","m ","d"}))
2. Is there a way of displaying (identifying) what that OTHER data may be
in a column other that the criteria specified? That is, returning
whatever
info that doesn't fit the given criteria. How wd I tweak the following
formula to do this (if it is at all possible)?
=SUMPRODUCT((C2:C1180=L10)*(LEFT(J2:J1180)={"a","d ssn"}))




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Sumproduct - formula to return data OTHER than given criteria

Ideally, the formula would produce a list of all item codes
featured in j2:j1180 that fall outside the nominated criteria


One way to do that is to filter the data. See Bernie's reply where he
explains that.

--
Biff
Microsoft Excel MVP


"Twishlist" wrote in message
...
Thank you for the first answer, I'll try it shortly and confirm.
With regard to the second question,: Ideally, the formula would produce a
list of all item codes featured in j2:j1180 that fall outside the
nominated
criteria. The problem arises that when I specify criteria, such as
commencing with "a", there may be other item codes in this column of which
I'm unaware (until my numbers don't correspond). Then I can only locate
them
by perusing manually.

"T. Valko" wrote:

if J2:J1180 contains data OTHER than "a", "m", "d",
how do I adjust the following formula to calculate this?
=SUMPRODUCT((C2:C1180=L10)*(LEFT(J2:J1180)={"a"," m","d"}))


So, you want to count all cells that *are not* a, m or d?

=SUMPRODUCT(--(C2:C1180=L10),--(ISNA(MATCH(LEFT(J2:J1180),{"a","m","d"},0))))

That will also count empty/blank cells because they meet the condition of
*not being* either a, d or m. To exclude possible empty/blank cells:

=SUMPRODUCT(--(C2:C1180=L10),--(J2:J1180<""),--(ISNA(MATCH(LEFT(J2:J1180),{"a","m","d"},0))))

2. Is there a way of displaying (identifying) what that OTHER data may
be
in a column other that the criteria specified? That is, returning
whatever
info that doesn't fit the given criteria. How wd I tweak the following
formula to do this (if it is at all possible)?
=SUMPRODUCT((C2:C1180=L10)*(LEFT(J2:J1180)={"a","d ssn"}))


Not sure I follow you on that. You want to list all cells in J2:J1180
that
don't start with a, m or d?

--
Biff
Microsoft Excel MVP


"Twishlist" wrote in message
...
Just rec'd speedy and really helpful answers regarding my Q on multiple
criteria, but I should have also asked the correct formula for
quantifying
values OTHER THAN nominated criteria:
1. if J2:J1180 contains data OTHER than "a", "m", "d", how do I adjust
the
following formula to calculate this?
=SUMPRODUCT((C2:C1180=L10)*(LEFT(J2:J1180)={"a","m ","d"}))
2. Is there a way of displaying (identifying) what that OTHER data may
be
in a column other that the criteria specified? That is, returning
whatever
info that doesn't fit the given criteria. How wd I tweak the following
formula to do this (if it is at all possible)?
=SUMPRODUCT((C2:C1180=L10)*(LEFT(J2:J1180)={"a","d ssn"}))








Reply
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
return multiple rows of data based on criteria steve_sr2 Excel Worksheet Functions 8 May 20th 23 07:47 PM
sumproduct formula (multiple criteria) Inter Excel Discussion (Misc queries) 11 August 9th 07 12:28 PM
SUMPRODUCT question, finding data on multiple criteria TravisB Excel Discussion (Misc queries) 1 March 5th 07 06:41 AM
sumproduct return value by comparing two criteria..... [email protected] Excel Worksheet Functions 8 January 5th 07 06:47 PM
SUMPRODUCT Formula to Count Row of data Below Matched Criteria Sam via OfficeKB.com Excel Worksheet Functions 8 February 3rd 05 01:37 AM


All times are GMT +1. The time now is 04:25 PM.

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"