LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 265
Default counting unique items within categories

Let's assume that A2:A7 contains the item, and B2:B7 contains the
category. Let D2:D4 contain 'cat a', 'cat b', and 'cat c', then enter
the following formula in E2, confirm with CONTROL+SHIFT+ENTER (if done
correctly, Excel will automatically place curly braces {.....} around
the formula), and copy down:

=SUM(IF(FREQUENCY(IF($B$2:$B$7=D2,MATCH("~"&$A$2:$ A$7,$A$2:$A$7&"",0)),RO
W($A$2:$A$7)-ROW($A$2)+1),1))

Hope this helps!

In article ,
Btaylor64 wrote:

Domenic, I really appreciate your help!

When you use the terms ItemRange and CategoryRange in the formula below, do
you mean (using my example below), A1:A6 and B1:B6, respectively? When Excel
gets to the second IF in this formula, it attempts to evaluate whether B1:B6
= "Cat A", which seems to be a syntax error? I get "#VALUE!" as a response.

When I click to show the calculation steps, this ItemRange after the first
IF is the part where it gives me an error. Am I just misunderstanding your
intent as to what ItemRange means?

Again, I am so grateful for your help!
-Brett

 
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
Counting Unique Items with Multiple Criteria Teethless mama Excel Worksheet Functions 0 March 2nd 07 11:12 PM
Counting Unique Items with Multiple Criteria Ron Coderre Excel Worksheet Functions 0 March 2nd 07 10:51 PM
Counting unique items...please help Lisa Excel Worksheet Functions 9 March 1st 07 09:23 PM
counting unique items(values or text) guneet_ahuja Excel Worksheet Functions 11 August 22nd 06 07:52 AM
counting unique items tjtjjtjt Excel Discussion (Misc queries) 3 September 14th 05 05:47 AM


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