Search code examples
excelformulas

How to write formula to display how many times one word is present in a row in ratio?


I need to calculate a ratio of words presence. I have simple excel row with 7 values, and I have to answer the following question:

  1. According to the info in your table, which value has the highest ratio? What is the ratio?

These are the values. I guess there might be 2 formulas, where in answer:

The [value which has the highest ratio - calc formula] has the highest ratio, and the ratio is [value from the formula which calculates the ratio] and it should be 3 out of 7.

Screenshot:

This is what I've come up with so far:

solution for first problem:


Solution

  • This will calculate the ratio of whatever value is in "E8"

    This will show the decimal ratio

    =Countif(A:A,E8)/countif(A:A,"*") = 3/7
    

    This will show the ratio

    =Countif(A:A,E8)&"/"&countif(A:A,"*") = 3/7