ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Count Number of Different Cells (https://www.excelbanter.com/excel-worksheet-functions/92997-count-number-different-cells.html)

ForSale

Count Number of Different Cells
 

B6:b45 includes a list of ID numbers. Some of the ID numbers will be
repeats. I need a formula that will count the number of different
IDs.

Thanks.


--
ForSale
------------------------------------------------------------------------
ForSale's Profile: http://www.excelforum.com/member.php...o&userid=11896
View this thread: http://www.excelforum.com/showthread...hreadid=550077


Bearacade

Count Number of Different Cells
 

Make sure there is no empy cells in that range.

=SUM(1/COUNTIF(B6:B35,B6:B35))

after you put that in the formula box, press control, shift and enter

Hope that helps


--
Bearacade


------------------------------------------------------------------------
Bearacade's Profile: http://www.excelforum.com/member.php...o&userid=35016
View this thread: http://www.excelforum.com/showthread...hreadid=550077


Domenic

Count Number of Different Cells
 
Try...

=SUMPRODUCT((B6:B45<"")/COUNTIF(B6:B45,B6:B45&""))

Hope this helps!

In article ,
ForSale wrote:

B6:b45 includes a list of ID numbers. Some of the ID numbers will be
repeats. I need a formula that will count the number of different
IDs.

Thanks.


ForSale

Count Number of Different Cells
 

Thanks to both.


--
ForSale
------------------------------------------------------------------------
ForSale's Profile: http://www.excelforum.com/member.php...o&userid=11896
View this thread: http://www.excelforum.com/showthread...hreadid=550077



All times are GMT +1. The time now is 04:33 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com