![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Guest
Posts: n/a
|
Hi guys
How do I use a D function to get number of unique items.. I'll illustrate below Name AAA AAA BBB BBB CCC So the DCOUNTA formula returns 3 |
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
A formula-based approach would be: =IF(LEN(A2:A6),SUMPRODUCT(1/(COUNTIF(A2:A6,A2:A6))) |
|
|
|
|
|
|
#3 |
|
Guest
Posts: n/a
|
Well, I am planning to write the formulas using VBA, because I will need to write it for 20 sheets, everyday. Any good method to do this??
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|