Excel 2007
<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Excel 2007.
I need to calculate a percent of the number of fish species that eat "PLANK" "INVERT" or "PISC". so in line 8 there are 5 species that eat one of the options. So the percentage should be 62.5%. Once I have this value I need to convert it to a score so <60% is 0; 60-70% is 3; and >70% is 5. I can get it to score but I can't get the equation to actually count the number of species eating one of those options. The equation I am using is:
=IF((COUNTIFS(Data!$E6:$CX6,">0",Data!$E$5:$CX$5,{"INVERT","PISC","PLANK"})/COUNTIF(Data!$E6:$CX6,">0")>0.7),5,IF((COUNTIFS(Data!$E6:$CX6,">0",Data!$E$5:$CX$5,{"INVERT","PISC","PLANK"})/COUNTIF(Data!$E6:$CX6,">0")<0.6),0,3))
any help on why the countif function will not count all three options would be greatly appreciated.
Thanks in advance.
A | B | C | D | E | F | G | H | I | J | L | M | |
---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | Name | Alewife - Alosa pseudoharengus | American Eel - Anguliia rostrata | Banded Darter - Etheostoma zonale | Banded Killifish - Fundulus diaphanus | Bigmouth Buffalo - Ictiobus cyprinellus | Black Bullhead - Ameriurus melas | Black Crappie - Pomoxis nigromaculatus | Blackchin Shiner - Notropis heterodon | |||
2 | ex | na | Endemism | ex | na | na | na | na | na | na | na | |
3 | Cyp | Cent | Family | Cent | Cyp | |||||||
4 | Lepo | Lepomis | ||||||||||
5 | site | site_date | zone | rep | PLANK | OMNI | INVERT | INVERT | OMNI | OMNI | PISC | PLANK |
6 | 8 | 7/5/2012 | SAV | 3 | 1 | 0.45 | .66666 | 0.33333 | 0.66666 | .333333 | 0.33333333 | .25 |
<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Excel 2007.
I need to calculate a percent of the number of fish species that eat "PLANK" "INVERT" or "PISC". so in line 8 there are 5 species that eat one of the options. So the percentage should be 62.5%. Once I have this value I need to convert it to a score so <60% is 0; 60-70% is 3; and >70% is 5. I can get it to score but I can't get the equation to actually count the number of species eating one of those options. The equation I am using is:
=IF((COUNTIFS(Data!$E6:$CX6,">0",Data!$E$5:$CX$5,{"INVERT","PISC","PLANK"})/COUNTIF(Data!$E6:$CX6,">0")>0.7),5,IF((COUNTIFS(Data!$E6:$CX6,">0",Data!$E$5:$CX$5,{"INVERT","PISC","PLANK"})/COUNTIF(Data!$E6:$CX6,">0")<0.6),0,3))
any help on why the countif function will not count all three options would be greatly appreciated.
Thanks in advance.