In: Operations Management
Which customer ID bought most food boxes? Explain how you determined relevant customer ID and note down which city this customer ID comes from
Please Tell me the steps on how this would be solved using Excel. Note that this is not the full excel data but just a small sample.
date_sign_up | customer_id | product_name | marketing_channel | City |
4/17/2015 13:11 | 71041 | Classic - 3 meals per week for 2 people | Search Engine Marketing | San Diego |
4/14/2015 11:32 | 103289 | Classic - 3 meals per week for 2 people | Newsletters (internal) | Los Angeles |
4/14/2015 9:53 | 107746 | Classic - 3 meals per week for 2 people | Newsletters (internal) | Los Angeles |
4/14/2015 16:08 | 157441 | Classic - 3 meals per week for 4 people | Newsletters (internal) | San Francisco |
4/18/2015 8:04 | 158646 | Classic - 3 meals per week for 2 people | Newsletters (internal) | San Diego |
4/18/2015 15:41 | 178843 | 3 Meals (vegetarian) for 2 people | TV / Radio Advertising | Miami |
4/15/2015 9:45 | 179297 | Classic - 3 meals per week for 2 people | Newsletters (internal) | Philadelphia |
4/15/2015 8:21 | 182439 | 3 Meals (vegetarian) for 2 people | Newsletters (internal) | San Francisco |
4/17/2015 6:57 | 186180 | Classic - 3 meals per week for 2 people | Partnership Marketing | San Diego |
4/19/2015 20:39 | 190396 | Classic - 3 meals per week for 2 people | TV / Radio Advertising | Miami |
4/14/2015 10:26 | 194229 | Classic - 3 meals per week for 2 people | Search Engine Marketing | Los Angeles |
4/13/2015 20:17 | 194353 | Classic - 3 meals per week for 2 people | Search Engine Marketing | Washington |
4/15/2015 14:43 | 200286 | Classic - 3 meals per week for 2 people | Search Engine Marketing | Philadelphia |
4/16/2015 7:35 | 201307 | Classic - 3 meals per week for 2 people | TV / Radio Advertising | 1San Diego |
4/15/2015 6:54 | 203319 | Classic - 3 meals per week for 2 people | Newsletters (internal) | San Francisco |
4/14/2015 8:35 | 205233 | Classic - 3 meals per week for 2 people | TV / Radio Advertising | Los Angeles |
4/13/2015 12:08 | 205322 | Classic - 3 meals per week for 2 people | Newsletters (internal) | Chicago |
4/16/2015 5:04 | 205611 | Classic - 3 meals per week for 2 people | TV / Radio Advertising | San Diego |
4/15/2015 12:17 | 208066 | 3 Meals (vegetarian) for 4 people | Newsletters (internal) | Philadelphia |
Below are the steps to find the answer:
Assume each row represents the one unit of order.
Take the data in an excel sheet
Select the dataset and insert pivot table
In the pivot field place Customer id in a row
Product name to be placed in Values and set the field value to count of product name
Place City in the row field
Go to the table design and in report layout select show in tabular form
In subtotals, select don't show subtotal
Then you will get the three columns of data which is Customer id, City Name and Count of orders like this
customer_id | City | Count of product_name |
71041 | San Diego | 1 |
103289 | Los Angeles | 1 |
107746 | Los Angeles | 1 |
157441 | San Francisco | 1 |
158646 | San Diego | 1 |
178843 | Miami | 1 |
179297 | Philadelphia | 1 |
182439 | San Francisco | 1 |
Select the data and paste in another sheet
Sort the product name from highest to lowest
you will get the customer Id with the highest number of orders and the city name.