Forum Discussion

Tommy2355's avatar
Tommy2355
Copper Contributor
Sep 15, 2022
Solved

Does Excel have Count Distinct options

I know the ability to countdistinct numbers exists in Power Query and other tools but can it be done in Excel? I only work in excel and have not had good luck learning Power Query.  I am just an old Vlookup guy and it does everything I need to do.  I do have the need for countdistinct values in formulas but have not found it in Excel. Appreciate any help here.

Thaks

Tommy C

6 Replies

  • DexterG_III's avatar
    DexterG_III
    Iron Contributor

    Tommy2355 The quick answer is yes, you can now get to that.  A new formula called "unique" exists with office 365 and there's an option to restrict only to records which appear only once.  If you're able to share your workbook I can help get you started with the formula.  

     

     

    • Tommy2355's avatar
      Tommy2355
      Copper Contributor
      I got the formula in the next post. Thank you for replying!
  • Tommy2355 

    =SUM(1/COUNTIF(B5:B13,B5:B13))

    You can try this formula. Enter the formula with ctrl+shift+enter if you don't work with Office365 or 2021.

     

    • Tommy2355's avatar
      Tommy2355
      Copper Contributor
      This one did not work for me but thank you for the reply!

Resources