if you need a excel sheet i had one the just put your figures and you will get the diversity result if you need msg me. you can alter it accordingly to your needs.
One way around the cero values in some of the cells is to use the if() function as follows:
Assuming that abundances of species are in one column.
Calculate de Pi for each species in one column. Let CellName be the Excell cell where the Pi values are stored, then calculate for each species the following formula in an adjacent column:
IF(CellName=0,0,CellName*(log(CellName)/log(2)))
That way the error for log(0) is avoided.
Then add all values for the entire sample.
I hope this is helpfull. But there are software that does it available in the web. Try one called PAST.
After putting your data, you need to go to insert function, then choose log, change the base to 2. You will have the log2pi values. I think then you can multiply and sum up the values to get the H.
Or, I have samples for you. Not only Shannon's diversity index , but also others. REMEMBER, you should press "Ctrl"+"Shift"+"Enter" together when you have new cells.
Here is how I did it. There is probably a more simple formula, but this is mine to get the Shannon for the species in cells B2:F2 and the total count (=SUM(B2:F2)) in G2: