# Counting Unique Cells

1. ## Counting Unique Cells

I'm trying to write a formula so that excel will go through a list of names and count unique names (not duplicates). So I have three columns of data. For Excel to count the first column, I have: =DCOUNTA(\$B\$5:\$B\$30,1,\$J\$5:\$J\$6)

The B's refer to my data (including the header cell), and the J's refer to my criteria, which is: =COUNTIF(B6:B30,B6)=1

This seems to work (not that I am exactly sure how).

But my problem is now I want to do the same thing for three columns that aren't next to each other.

Any ideas? Let me know if what I'm trying to do doesn't make sense...

Kevin

2. ## Re: Counting Unique Cells

But my problem is now I want to do the same thing for three columns that aren't next to each other.
Any reason why you can't use the same approach and ajdust the range references for the applicable columns?

3. ## Re: Counting Unique Cells

Yeah, so I guess this is really a basic question....how do you enter a range that isn't nice like B6:B30? Instead I want it to go through B6 to B30 and D6 to D30...

4. ## Re: Counting Unique Cells

I'm bumping this because I'm hoping someone understands what I'm trying to ask...thanks in advance!

5. ## Re: Counting Unique Cells

Put cursor after B. Press backspace. Enter D.

6. ## Re: Counting Unique Cells

As you can tell there is some confusion... are you perhaps looking to do a unique count where values of interest are spread across three separate ranges ?

General Rule of Thumb:

To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

7. ## Re: Counting Unique Cells

With the "Morefunc" add-in installed, the following formula seems to do what i think you're looking for: from 3 ranges (A2:A11, C2:C11, E2:E7) filled with names (some unique, some occurring 2 or 3 times) count the number of unique names.

There are currently 1 users browsing this thread. (0 members and 1 guests)

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1