A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
=2*COUNTIF(B7:B18, "yes")+COUNTIF(B7:B18, "unsure")
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I need a formula that will look at a group of cells, count up how many times a response is found and multiply the responses by a number and then calculate the total.
Cells B7:B18 count the number of times it finds "yes" and multiply that by 2, then count the number of times it finds "unsure" and multiply that by 1 and add the total for yes and total for unsure responses together.
Thanks
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
Answer accepted by question author
=2*COUNTIF(B7:B18, "yes")+COUNTIF(B7:B18, "unsure")
Here is a nice short way assuming all the cells have either yes or unsure:
=SUM(IF(LEN(B7:B18)=3,2,1))
If some of the cells can be blank or contain something other than yes or unsure, then you might be able to use:
=SUM(SWITCH(LEN(B7:B18),3,2,6,1,))
> ... count the number of times it finds
I know you want to count, but just to be different:
=SUM(SWITCH(Data,"Yes",2,"Unsure",1,0))