Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default count articles of a column that the result is between an intervall

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
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default count articles of a column that the result is between an intervall

=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" wrote in message
...
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



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default count articles of a column that the result is between an inter

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" wrote in message
...
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




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default count articles of a column that the result is between an intervall

=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
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
How to convert Value to words?Eg.Rs.1000/- to Repees One thousand Shailendra Neema Excel Discussion (Misc queries) 1 September 14th 06 11:28 AM
Conversion of Numercials to Figure JAGANNATH Excel Worksheet Functions 1 April 4th 06 04:12 PM
Need to Improve Code Copying/Pasting Between Workbooks David Excel Discussion (Misc queries) 1 January 6th 06 03:56 AM
Positioning Numeric Values Resulting from 6 Column Array Formula Sam via OfficeKB.com Excel Worksheet Functions 2 January 5th 06 02:03 AM
Count Intervals of Filtered TEXT values in Column and Return Count across a Row Sam via OfficeKB.com Excel Worksheet Functions 9 July 31st 05 03:37 AM


All times are GMT +1. The time now is 05:45 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"