Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Countif (no duplication)

Hi,

Follow these steps:

1. Type a heading for the range on sheet1, say Alias
2. Select the range of data (including the heading given in 1 above) on
sheet1 and assign it a name, say dummy1;
3. Select the range again and press Ctrl+L;
4. Select any blank cell;
5. Save the file on the desktop and name it try.xls
6. Go to Data Import External Data New Database query
7. Select Excel files
8. In the folder hierarchy on the right, select Desktop and click on the
try.xls on the left had panel
9. Click on OK
10. Click on dummy1 and then press the greater then symbol to get the Alias
column on the right hand side
11. Click on Next
12. Click on Next 2 times and on the last screen select "View Data or Edit
Query in Microsoft Query"
13. In the MS Query box, click on the SQL button

SELECT Count(*) FROM (SELECT DISTINCT ucase([Alias]) FROM dummy1)

14. It will say that SQL query cannot be depicted graphically - click on OK
15. Go to File Return data to MS office Excel
16. In the Properties box, select the cell where you want the output.
17. The count of names will appear as desired;

Now you may add or edit names in dummy1. All you have to do is right click
anywhere in the output and click on Refresh.

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Elton Law" wrote in message
...
Hi Expert,
Wanna count a column but there may be some duplication.
Want to count the number of persons.
If all count, should be 11.
But want to count without duplication, can it be made? In this case,
should
be 7.
(Janie, Jenny are duplicated)


Say Column A ...
Janie
Jenny
Alan
Patrick
Elton
Janie
Janie
Jenny
Alan
Elmer
Tinny

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
Duplication Macro stew Excel Discussion (Misc queries) 0 February 19th 09 12:28 PM
avoid duplication ..help please Terry Excel Worksheet Functions 1 February 28th 08 04:57 PM
Duplication PMST Excel Discussion (Misc queries) 2 February 19th 08 03:18 PM
Duplication Welthey Excel Discussion (Misc queries) 2 January 15th 07 09:48 PM
Preventing Duplication irresistible007 Excel Worksheet Functions 1 October 29th 05 08:21 AM


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