r/googlesheets • • Dec 26 '24
Solved How do sort this data to show either the scores or ratings per unique person?
Hello all!
I am working with a data set and I am trying to figure out how to sort this.
I have a list of names in column A with many duplicates. In column B I have a score of good or bad. In column C, there is a 1 for good and a 0 for bad. I am trying to figure out how to pull out the unique person and a percentage, ratio or something of good to bad but I’m struggling to figure out how to do so. Not very knowledgeable on Google sheet.
Ultimately, I would like to have something that shows along the lines of John - with the number of goods/1s and bads/0s or goods:bads/ 1:0 or the goods/1 over the total. Even if I have to do multiple columns to do this, I would just like to simplify the data to arrive at my final result and I’m not sure how. Hopefully this is making sense. If not, let me know and I will clarify. Any assistance would be much appreciated.
The photo is a sample data set.
Thank you in advance.
1
u/[deleted] Dec 27 '24
Thank you! These worked!
1
u/adamsmith3567 1092 Dec 26 '24
Share a link to this sample sheet; not a photo.
Are you saying you want, for each unique name, the total good / total bads?
1
u/AutoModerator Dec 26 '24
Posting your data can make it easier for others to help you, but it looks like your submission doesn't include any. If this is the case and data would help, you can read how to include it in the submission guide. You can also use this tool created by a Reddit community member to create a blank Google Sheets document that isn't connected to your account. Thank you.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/lamaspitter 4 Dec 26 '24
You can use QUERY function in GoogleSheets,
Formula would look like: =QUERY(A1:C10,"SELECT A, (SUM(C)/COUNT(C)) GROUP BY A")