If Statement

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a column of numbers that range from 1 - 10 and I need to write a
formula that says if B1:B5 >= 5 then I need to divide the number of cells
that are >= 5 by the total number of customers in the column.
 
If I understand you correctly this should do it:
=IF(SUM($B$1:$B$5>=10,IF(B1>=5,B1/COUNT($B$1:$B$5),""))


Dave
 
Sorry, that didn't work. Let me be more specific. I need to know how many of
the numbers in this column are >= 5 and then I need to divide the number that
are >= 5 by the total number of customers. In this case 3 are >= to 5, so I
need to divide 3 by 5 which equals 60%.

John 5
Sue 2
Sally 6
George 1
Joe 10
60% Cross Sale Ratio
 
from specifis example maybe something like this will work

=COUNTIF(B1:B5,">=5")/COUNTA(A1:A5)

or
=TEXT(COUNTIF(B1:B5,">=5")/COUNTA(A1:A5),"0.00%") & " [cross sale percentage]"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top