BPMSG Diversity Calculator – Excel

The diversity calculator is an excel template that allows you to calculate alpha-, beta- and gamma diversity for a set samples (input data), and to analyze similarities between the samples based on partitioning diversity in alpha and beta diversity.

The template works under Windows OS and Excel 2010 (xlsx extension). No macros or links to external workbooks are necessary. The workbook consists of an input worksheet for a set of data samples, a calculation worksheet, where all necessary calculations are done, and a result worksheet “beta” displaying the results.


The template may be used to partiton data distributions into alpha and beta diversity, it can be applied in many areas, for example

  • Bio diversity – local (alpha) and regional (beta) diversity
  • AHP group consensus – identify sub-goups of decision makers with similar priorities
  • Marketing – cluster analysis of similarities in markets
  • Business diversification over time periods
  • and many more.

Let me know your application! If you just need to calculate a set of diversity indices, you can use my online diversity calculator here.

Calculations and results

Following data will be calculated and displayed:


  • Shannon Entropy H (natural logarithm) alpha-, beta- and gamma, and corresponding Hill numbers (true diversity of order one) for all samples
  • Homogeneity measure
    1. Mac Arthur homogeneity indicator M
    2. Relative homogeneity S
    3. AHP group consensus S* (for AHP priority distributions)


  • Table 1: Shannon alpha-entropy, Equitability, Simpson Dominance, Gini-Simpson index and Hill numbers for each data sample


  • Table 2: Top 24 pairs of most similar samples
  • Page 2: Matrix of pairs of data samples
  • Diagram 1: Gini-Simpson index and Shannon Equitability
  • Diagram 2: Average proportional distribution for all classes/categories
  • Diagram 3: Proportional distribution sorted from largest to smallest proportion (relative abundance)


  • Maximum number of classes/categories: 20
  • Maximum number of samples: 24

Description of the template:  BPMSG-Diversity-Calc-v14-09-08.pdf

Other posts explaining the concept of diversity


The template is free. So I would really appreciate, if you could – at least – feedback or write me about your application of AHP, and the use of the template. Thank you!

Download BPMSG Diversity Calculator Version 14.02.13 (zip) download

The work is licensed under the Creative Commons Attribution-Noncommercial 3.0 Singapore License. For terms of use please see our user agreement and privacy policy.

As this version is the first release, please feedback any bugs or problems you might encounter.

Incoming search terms:

  • shannon diversity index calculator
  • Alpha Diversity Calculator
  • Calculation of Alpha beta and gamma diversity
  • how to input data to be used in r to calculate diversity indices
Share on Facebook

9 thoughts on “BPMSG Diversity Calculator – Excel”

  1. Hello, thank you for share diversity calculation. I would like to calculate diversity of high a mountian vegetation gradient. I used Shannon winner index, but I would like to calculate the “true diversity”. I would apreciate if you can help me with this; data are vegetation cover by species in 16m2 plots. thank you very much

  2. Thank you for posting your template for calculating diversity. I am planning on using it in a bioinformatics lesson in the microbial ecology course that I teach at UCLA.

  3. Hello and thanks very much
    i work on my thesis , about salmonella and fingerprinting by rep-PCR
    My salmonella isolates a
    and i must copmute DI and 1-D, nd thus molecular profiles are high,
    unfortunately the category maximum in this online and in downloaded exel file is 20( max is 20) and this is problem
    my profile number ,is 29, 35, 32 that mucher than 20
    what can i do???

  4. Kindly read the description, if you don’t need alpha and beta diversity, you can input 1 sample only. Shannon diversity will be calculated. You might also study my articles or watch my videos.

Leave a Reply

Your email address will not be published. Required fields are marked *