PC Review


Reply
Thread Tools Rate Thread

count articles of a column that the result is between an intervall

 
 
=?Utf-8?B?Z21mcA==?=
Guest
Posts: n/a
 
      20th Nov 2006
I need to count the diferent articles of a column where the result its
between an interval (the criteria is defined in two cells).
in my datasheet its possible that the same article has different results.

example:
Data
____________________
(articles) (result)
Column A Column B
aaa 7
bbb 7
aaa 15
aaa 6
aaa 8

criteria
____________________
Column C Column D
5 10

Analysing the result, i have 3 "aaa" and 1 "bbb".
I want to konw a formula that the result result is 2 articles (artilce "aaa"
+ article "bbb").
thanks,
gmfp
 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      20th Nov 2006
=SUMPRODUCT(--(A2:A20="aaa"),--($B$2:$B$20>=$C$2),--($B$2:$B$20<=$D$2))

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"gmfp" <(E-Mail Removed)> wrote in message
news:4C95F8A7-0717-4759-A3A5-(E-Mail Removed)...
> I need to count the diferent articles of a column where the result its
> between an interval (the criteria is defined in two cells).
> in my datasheet its possible that the same article has different results.
>
> example:
> Data
> ____________________
> (articles) (result)
> Column A Column B
> aaa 7
> bbb 7
> aaa 15
> aaa 6
> aaa 8
>
> criteria
> ____________________
> Column C Column D
> 5 10
>
> Analysing the result, i have 3 "aaa" and 1 "bbb".
> I want to konw a formula that the result result is 2 articles (artilce

"aaa"
> + article "bbb").
> thanks,
> gmfp



 
Reply With Quote
 
=?Utf-8?B?Z21mcA==?=
Guest
Posts: n/a
 
      20th Nov 2006
Bob,

i dont want to count the articles that are equal "aaa".
i want to count how many different articles i have.
and i prefer not to identify the article in the formula, because i could
have 40 different articles.
in the example, i have 3 "aaa" and 1 "bbb" that satisfy my criteria. so i
have 2 different articles. this is the result that i want to know.
tks
gmfp

"Bob Phillips" escreveu:

> =SUMPRODUCT(--(A2:A20="aaa"),--($B$2:$B$20>=$C$2),--($B$2:$B$20<=$D$2))
>
> --
> HTH
>
> Bob Phillips
>
> (replace somewhere in email address with gmail if mailing direct)
>
> "gmfp" <(E-Mail Removed)> wrote in message
> news:4C95F8A7-0717-4759-A3A5-(E-Mail Removed)...
> > I need to count the diferent articles of a column where the result its
> > between an interval (the criteria is defined in two cells).
> > in my datasheet its possible that the same article has different results.
> >
> > example:
> > Data
> > ____________________
> > (articles) (result)
> > Column A Column B
> > aaa 7
> > bbb 7
> > aaa 15
> > aaa 6
> > aaa 8
> >
> > criteria
> > ____________________
> > Column C Column D
> > 5 10
> >
> > Analysing the result, i have 3 "aaa" and 1 "bbb".
> > I want to konw a formula that the result result is 2 articles (artilce

> "aaa"
> > + article "bbb").
> > thanks,
> > gmfp

>
>
>

 
Reply With Quote
 
=?Utf-8?B?VGVldGhsZXNzIG1hbWE=?=
Guest
Posts: n/a
 
      20th Nov 2006
=SUM(IF(A1:A100<>"",1/COUNTIF(A1:A100,A1:A100)))

ctrl+shift+enter (not just enter)



"gmfp" wrote:

> I need to count the diferent articles of a column where the result its
> between an interval (the criteria is defined in two cells).
> in my datasheet its possible that the same article has different results.
>
> example:
> Data
> ____________________
> (articles) (result)
> Column A Column B
> aaa 7
> bbb 7
> aaa 15
> aaa 6
> aaa 8
>
> criteria
> ____________________
> Column C Column D
> 5 10
>
> Analysing the result, i have 3 "aaa" and 1 "bbb".
> I want to konw a formula that the result result is 2 articles (artilce "aaa"
> + article "bbb").
> thanks,
> gmfp

 
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
Count Uniques in Column, put result in next blank cell and continueuntil last row S Himmelrich Microsoft Excel Programming 5 15th Jan 2008 05:31 PM
Formula to lookup Multiple Column Text and then Count Result ShelbyMan Microsoft Excel Worksheet Functions 2 22nd Aug 2005 01:43 AM
Re: DNS update intervall Markus Weber Megalith Microsoft Windows 2000 DNS 7 9th Jul 2003 04:26 AM
Re: DNS update intervall Mike Lin Microsoft Windows 2000 DNS 4 2nd Jul 2003 12:22 PM
Re: DNS update intervall Markus Weber Megalith Microsoft Windows 2000 DNS 1 1st Jul 2003 11:21 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:10 AM.