Search code examples
pythonexcelexcel-formulacorrelationanalysis

How to find distribution of a grouped column with respect to another column in excel?


Excel newbie and aspiring Data analyst, I have this data and I want to find the distribution of City wise Shopping Experience. The column M has the shopping experience rated from 1 to 5.

What I tried

I am not able to google how to do this at all. I tried running correlation, but the in-built excel data analysis tool does not let me run it on non-numeric data, and I am not able to group the City cells either. I thought of replacing every city with numeric alias but I don't know how to do that either. How to search, or go ahead with this problem?

Update: I was thinking of some way to get this out of the cities column.

enter image description here

I am thinking this is better done in python.


Solution

  • How about something like this, have just taken the cities and data to show averageif, sumif and countif:

    enter image description here

    I used Data validation to provide the list to select from.