Share via

formula to count number of times values are found in column and multiply different responses

Anonymous
2025-03-04T14:55:17+00:00

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

Microsoft 365 and Office | Excel | For home | Windows

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.

0 comments No comments

Answer accepted by question author

HansV 462.6K Reputation points
2025-03-04T15:04:02+00:00

=2*COUNTIF(B7:B18, "yes")+COUNTIF(B7:B18, "unsure")

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Anonymous
    2025-03-05T20:18:02+00:00

    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,))

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2025-03-05T01:09:56+00:00

    > ...  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))
    

    Was this answer helpful?

    0 comments No comments