Share via

Help creating a formula to replace text with a number and tally results, compare with another and determine which has more points

RWHM 20 Reputation points
2026-02-05T16:12:46.1+00:00

I need help with some formulas. We have a spreadsheet populated by a form. The responses have the following options for each of the questions. I know the responses should have been just the number, but someone else already created and distributed that form.

User's image

There should be two rows per user, one for each publisher option.

What I need is the following

  1. If a person does not complete the form for both publishers it is highlighted in red
  2. the cells should only contain the numbers 0, 1, or 2 based on what they select.
  3. scores for each user should be added up for each publisher.
  4. whichever publisher the user gives the highest overall score is somehow noted and there is a way to easily see which of the two publishers has been selected more.

[Moderator note: personal info removed] 

Microsoft 365 and Office | Excel | For education | MacOS

Answer accepted by question author

Dora-T 13,745 Reputation points Microsoft External Staff Moderator
2026-02-05T23:13:36.0666667+00:00

Please note that our forum is a public platform, and we will modify your question to hide your personal information in the description. Kindly ensure that you hide any personal or organizational information the next time you post an error or other details to protect personal data.
Hi RWHM

Thank you for reaching out to the Microsoft Q&A forum and for sharing your scenario.

Based on the information you provided, I tested this setup in my environment, and you can follow the steps below to see if the results match what you are looking to achieve.

1.Highlight users who did not complete both publishers

-Go to Home > Conditional Formatting > New Rule > Format cells where a formula is true.

-Enter the following formula: =OR( COUNTIFS($D:$D,$D2,$H:$H,"Carnegie")=0, COUNTIFS($D:$D,$D2,$H:$H,"Curriculum")=0 )

-Select “Stop if true”, choose a fill color (for example, red), and apply the rule to your data range.

User's image

This will highlight users who only submitted one publisher response or did not complete both.

2.Convert responses to numeric values (0, 1, or 2)

If responses include text such as “2 = Strong” or “1 = Adequate”, create helper columns and use: =VALUE(LEFT(cell,1))

User's image

3.Calculate total score per submission

Add a “Total score” column and use a SUM formula across the numeric response columns for each row.

User's image

4.Compare total scores by publisher for each user

Create a small summary section in the same sheet and list each email once (copy the Email column and use Data > Remove duplicates).

Then create columns to calculate totals for each publisher:

-Carnegie total: =SUMPRODUCT(($D$2:$D$11=D15)(ISNUMBER(SEARCH("Carnegie",$H$2:$H$11)))($Y$15:$Y$24))

User's image

-Curriculum total: =SUMPRODUCT(($D$2:$D$11=D15)(ISNUMBER(SEARCH("Curriculum",$H$2:$H$11)))($Y$15:$Y$24))

User's image

-Winner: =IF(E15>F15,"Carnegie", IF(F15>E15,"Curriculum","Tie"))

User's image

These formulas total the scores each user assigned to both publishers and determine which one received the higher score.

5.Count overall selections

To quickly see which publisher was selected more overall, use:

="Carnegie selected: "&COUNTIF(G15,"Carnegie")

="Curriculum selected: "&COUNTIF(G15,"Curriculum")

User's image

This will display the total number of users who selected each publisher.

I hope this helps.


If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".  

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

Was this answer helpful?


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.