PC Review


Reply
Thread Tools Rate Thread

Counting Multiple columns using contain

 
 
=?Utf-8?B?c2VzbGVyMg==?=
Guest
Posts: n/a
 
      22nd Aug 2007
I am trying to produce calculations for a sheet , broken down by month where
I want to use contain somehow with sumproduct or countif but having no joy.
Any help would be appreciated. The 2 formulas I have tried are:

=SUMPRODUCT(--($A$2:$A$573="Aug*"),--($D$2:$D$573="App*"),--($F$2:$F$573="AUTO*"))

and

=COUNT(IF($A$2:$A$573="Aug*",IF($D$2:$D$573="App*",IF($F$2:$F$573="AUTO*",$C$2:$C$573))))

I will have for each month 4 scenarios:
contains App and contains AUTO
contains App and doesn't contain AUTO
doesn't contain App and contains AUTO
doesn't contain App and doesn't contain AUTO

So once I get one formula correct, the other 3 will be not a problem.
 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      22nd Aug 2007
I'd try:

=SUMPRODUCT(--(left($A$2:$A$573,3)="Aug"),
--(left($D$2:$D$573,3)="App"),
--(left($F$2:$F$573,4)="AUTO"))



sesler2 wrote:
>
> I am trying to produce calculations for a sheet , broken down by month where
> I want to use contain somehow with sumproduct or countif but having no joy.
> Any help would be appreciated. The 2 formulas I have tried are:
>
> =SUMPRODUCT(--($A$2:$A$573="Aug*"),--($D$2:$D$573="App*"),--($F$2:$F$573="AUTO*"))
>
> and
>
> =COUNT(IF($A$2:$A$573="Aug*",IF($D$2:$D$573="App*",IF($F$2:$F$573="AUTO*",$C$2:$C$573))))
>
> I will have for each month 4 scenarios:
> contains App and contains AUTO
> contains App and doesn't contain AUTO
> doesn't contain App and contains AUTO
> doesn't contain App and doesn't contain AUTO
>
> So once I get one formula correct, the other 3 will be not a problem.


--

Dave Peterson
 
Reply With Quote
 
=?Utf-8?B?c2VzbGVyMg==?=
Guest
Posts: n/a
 
      22nd Aug 2007
It's still returning 0 :-(

"Dave Peterson" wrote:

> I'd try:
>
> =SUMPRODUCT(--(left($A$2:$A$573,3)="Aug"),
> --(left($D$2:$D$573,3)="App"),
> --(left($F$2:$F$573,4)="AUTO"))
>
>
>
> sesler2 wrote:
> >
> > I am trying to produce calculations for a sheet , broken down by month where
> > I want to use contain somehow with sumproduct or countif but having no joy.
> > Any help would be appreciated. The 2 formulas I have tried are:
> >
> > =SUMPRODUCT(--($A$2:$A$573="Aug*"),--($D$2:$D$573="App*"),--($F$2:$F$573="AUTO*"))
> >
> > and
> >
> > =COUNT(IF($A$2:$A$573="Aug*",IF($D$2:$D$573="App*",IF($F$2:$F$573="AUTO*",$C$2:$C$573))))
> >
> > I will have for each month 4 scenarios:
> > contains App and contains AUTO
> > contains App and doesn't contain AUTO
> > doesn't contain App and contains AUTO
> > doesn't contain App and doesn't contain AUTO
> >
> > So once I get one formula correct, the other 3 will be not a problem.

>
> --
>
> Dave Peterson
>

 
Reply With Quote
 
=?Utf-8?B?c2VzbGVyMg==?=
Guest
Posts: n/a
 
      22nd Aug 2007
Dave, please ignore first reply. Silly me - the cell value is 01/08/2006 so
when I paste the Month values in cells e.g h2 = 01/08/2006 and refer to h2
in the first condition below it works fine. Thanks for your help,
appreciated :-)
Shaz

"Dave Peterson" wrote:

> I'd try:
>
> =SUMPRODUCT(--(left($A$2:$A$573,3)="Aug"),
> --(left($D$2:$D$573,3)="App"),
> --(left($F$2:$F$573,4)="AUTO"))
>
>
>
> sesler2 wrote:
> >
> > I am trying to produce calculations for a sheet , broken down by month where
> > I want to use contain somehow with sumproduct or countif but having no joy.
> > Any help would be appreciated. The 2 formulas I have tried are:
> >
> > =SUMPRODUCT(--($A$2:$A$573="Aug*"),--($D$2:$D$573="App*"),--($F$2:$F$573="AUTO*"))
> >
> > and
> >
> > =COUNT(IF($A$2:$A$573="Aug*",IF($D$2:$D$573="App*",IF($F$2:$F$573="AUTO*",$C$2:$C$573))))
> >
> > I will have for each month 4 scenarios:
> > contains App and contains AUTO
> > contains App and doesn't contain AUTO
> > doesn't contain App and contains AUTO
> > doesn't contain App and doesn't contain AUTO
> >
> > So once I get one formula correct, the other 3 will be not a problem.

>
> --
>
> Dave Peterson
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Counting from Multiple Columns RSteph Microsoft Access 1 18th Feb 2009 12:46 AM
Counting from multiple columns =?Utf-8?B?VGhlIEJyaUd1eQ==?= Microsoft Excel Misc 0 17th Sep 2007 01:38 PM
counting multiple columns Tom G Microsoft Excel Discussion 6 4th Dec 2006 08:58 AM
Counting from multiple columns... Yasutaka Ito Microsoft Excel Worksheet Functions 4 2nd Jan 2004 04:47 PM
COUNTING - MULTIPLE COLUMNS-MULTIPLE WKSHTS Barbara Microsoft Excel Worksheet Functions 1 17th Oct 2003 04:32 PM


Features
 

Advertising
 

Newsgroups
 


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