![]() |
![]() |
|
|||||||
| 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 |
|
New Member
Join Date: Apr 2002
Posts: 6
|
if you have a range of numbers running down in order, how can you use above formula to see when that number changes, so e.g if you have 1,1,1,1,2,2,2,3,3,3 and you only want to know how many different numbers you have e.g 3
|
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,315
|
Quote:
=SUM(IF(FREQUENCY(A1:A15,A1:A15)>0,1)) otherwise you need an array-formula: =SUM(IF(LEN(A1:A15),1/(COUNTIF(A1:A15,A1:A15)))) Aladin |
|
|
|
|
|
|
#3 |
|
New Member
Join Date: Apr 2002
Posts: 6
|
thanks 1st works perfect!
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|