GOOGLE SHEETS: Ignoring text when calculating an average

Status
Not open for further replies.

bluargent

New Member
Joined
May 13, 2022
Messages
7
Office Version
  1. 365
Platform
  1. MacOS
Hi! Reposting since I need this by the end of the month with more info.

I have a rather complex rating sheet that I am attempting to proliferate throughout my company. I have encountered the first use error in the wild when a coworker entered "NA" for a rating, rather than leaving the cell blank, which appears to have messed up my calculations. How can I not include strings in the sum?

Table looks like this:
Screen Shot 2022-08-08 at 5.10.51 PM.png


The rating is calculated using the following function:
=IFERROR(20*SUMPRODUCT(G3:N3,'Grading Methodology'!$B$4:$I$4)/SUMPRODUCT(--((G3:N3)>0),'Grading Methodology'!$B$4:$I$4),"No Rating Yet")

where the "grading methodology" tab has percentage weights for each of the categories.

The intent is for the rating be out of 100 even if a score or two is missing. However, it seems that Sheets treats strings like "NA" as a zero - I would like for strings to be treated as a blank cell, so the rating can still be calculated
Another screenshot that shows the score working even if only one person scores:

1661380450651.png
Thanks!

To be clear, this is a Google Sheets spreadsheet
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Duplicate to: GOOGLE SHEETS: Treat text as a blank cell when running a calculation

In future, please do not post the same question multiple times. Per Forum Rules (#12), posts of a duplicate nature will be locked or deleted.

In relation to your question here, I have closed this thread so please continue in the linked thread. If you do not receive a response, you can "bump" it by replying to it yourself, though we advise you to wait 24 hours before doing so, and not to bump a thread more than once a day.
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,223,884
Messages
6,175,173
Members
452,615
Latest member
bogeys2birdies

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top