LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default Counting unique combinations in two columns

Hi,

I am interested in finding a function that will count the number of
unique combinations a in two columns (columns A& B). For example:

Column A Column B Column C Column D
ABC 03/2007 =A1&B1 =SUMPRODUCT((1/
COUNTIF(C1:C5,C1:C5&"")))
BCA 03/2007 =A2&B2
CAB 07/2007 =A3&B3
ACB 07/2007 =A4&B4
ABC 03/2007 =A5&B5

In the case above, there are 4 unique combinations in columns A and B
(ABC 03/2007, BCA 03/2007, CAB 07/2007, ACB 07/2007). I don't count
the second instance of ABC 03/2007 becuase it is already in the first
row.

Is there a cleaner way of doing this? I've tried using sumproduct, but
I can't seem to get it to work the way I want it to. Does anyone know
how this can be done?

There are only four possible strings in column A (ABC, BCA, CAB, ACB)

Thanks!
Jason

 
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
Unique counting Michael Excel Discussion (Misc queries) 19 November 27th 06 09:28 AM
Counting Unique Codes pgiessler Excel Discussion (Misc queries) 1 August 16th 06 04:56 PM
how do i print select combinations of columns in Excel? jbrown Excel Discussion (Misc queries) 3 June 28th 06 10:48 PM
I have 5 columns of data and want to create combinations based on Carbob Excel Discussion (Misc queries) 0 June 2nd 06 04:58 PM
Counting unique entries in column A but only if specific values appear in columns B and C markx Excel Worksheet Functions 1 February 10th 05 11:52 AM


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