Hi folks.
Working with a (trimmed) dataset with over 25,000 rows of data.
Objective: Determine the top 100 most common route_taken for each user_type (only two user_type i.e. casual & member).
Details: Over 6,980 number_unique_routes.
Explanation: Trying to figure out either by using a pivot_table (tried but really don't know how to input data correctly) or by using a function/formula how to retrieve the most common routes taken for members and casual users. Would like to first understand how to apply the formula/function to retrieve the most common routes how many times they appear ordered by Z-A (to retrieve the top 100 rows of data). Not sure how to implement the =COUNTIF function in this scenario to count recurring text strings and how I can apply it. An explanation would really wrap my mind around it, thanks in advance (@Joe4 any ideas?).
e.g. something like this maybe? (open to suggestions on better ways to structure this)
*Note with some route_taken you might get an instance where both members and casual riders use that route but members or casual riders could be the more common user. (See frequent_rider_route columns)
I think I made my problem quite clear - if any clarification is needed, please let me know!
See below MiniSheet
Working with a (trimmed) dataset with over 25,000 rows of data.
Objective: Determine the top 100 most common route_taken for each user_type (only two user_type i.e. casual & member).
Details: Over 6,980 number_unique_routes.
Explanation: Trying to figure out either by using a pivot_table (tried but really don't know how to input data correctly) or by using a function/formula how to retrieve the most common routes taken for members and casual users. Would like to first understand how to apply the formula/function to retrieve the most common routes how many times they appear ordered by Z-A (to retrieve the top 100 rows of data). Not sure how to implement the =COUNTIF function in this scenario to count recurring text strings and how I can apply it. An explanation would really wrap my mind around it, thanks in advance (@Joe4 any ideas?).
e.g. something like this maybe? (open to suggestions on better ways to structure this)
*Note with some route_taken you might get an instance where both members and casual riders use that route but members or casual riders could be the more common user. (See frequent_rider_route columns)
I think I made my problem quite clear - if any clarification is needed, please let me know!
See below MiniSheet
December_2020_trimmed_v2.csv | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | |||
1 | ride_id | user_type | rideable_type | day_of_week | started_at | ended_at | ride_length | start_station_name | end_station_name | route_taken | start_station_id | end_station_id | start_coordinates | end_coordinates | distance_traveled_miles | ||
2 | 8AC7643FDA05E1D4 | member | classic_bike | 3 | 2020-12-08T05:41:00Z | 2020-12-08T06:21:00Z | 0:40:05 | Larrabee St & North Ave | Halsted St & Clybourn Ave | Larrabee St & North Ave to Halsted St & Clybourn Ave | TA1306000008 | 331 | 41.91021, -87.6435 | 41.909668, -87.648128 | 0.24089942 | ||
3 | 22B721668F54DF09 | member | classic_bike | 4 | 2020-12-09T05:55:00Z | 2020-12-09T06:17:00Z | 0:21:56 | Larrabee St & North Ave | Halsted St & Clybourn Ave | Larrabee St & North Ave to Halsted St & Clybourn Ave | TA1306000008 | 331 | 41.91021, -87.6435 | 41.909668, -87.648128 | 0.24089942 | ||
4 | 0AE1B9DB2F1F8BC2 | member | classic_bike | 1 | 2020-12-13T12:00:00Z | 2020-12-13T12:03:00Z | 0:03:03 | Larrabee St & North Ave | Halsted St & Clybourn Ave | Larrabee St & North Ave to Halsted St & Clybourn Ave | TA1306000008 | 331 | 41.91021, -87.6435 | 41.909668, -87.648128 | 0.24089942 | ||
5 | 8DAEDE1893BCCBC8 | member | classic_bike | 6 | 2020-12-18T11:57:00Z | 2020-12-18T12:00:00Z | 0:03:00 | Larrabee St & North Ave | Halsted St & Clybourn Ave | Larrabee St & North Ave to Halsted St & Clybourn Ave | TA1306000008 | 331 | 41.91021, -87.6435 | 41.909668, -87.648128 | 0.24089942 | ||
6 | EEC33E416B277B7A | casual | classic_bike | 1 | 2020-12-20T18:47:00Z | 2020-12-20T19:00:00Z | 0:13:05 | Larrabee St & North Ave | Halsted St & Clybourn Ave | Larrabee St & North Ave to Halsted St & Clybourn Ave | TA1306000008 | 331 | 41.91021, -87.6435 | 41.909668, -87.648128 | 0.24089942 | ||
7 | 95B7ADC081755772 | casual | classic_bike | 4 | 2020-12-09T14:58:00Z | 2020-12-09T15:08:00Z | 0:10:36 | Greenview Ave & Fullerton Ave | Halsted St & Clybourn Ave | Greenview Ave & Fullerton Ave to Halsted St & Clybourn Ave | TA1307000001 | 331 | 41.92533, -87.6658 | 41.909668, -87.648128 | 1.413006342 | ||
8 | 39CD27FB31626CD0 | member | classic_bike | 5 | 2020-12-10T11:18:00Z | 2020-12-10T11:30:00Z | 0:11:19 | Greenview Ave & Fullerton Ave | Halsted St & Clybourn Ave | Greenview Ave & Fullerton Ave to Halsted St & Clybourn Ave | TA1307000001 | 331 | 41.92533, -87.6658 | 41.909668, -87.648128 | 1.413006342 | ||
9 | 5F82004CA928515E | member | classic_bike | 6 | 2020-12-04T17:25:00Z | 2020-12-04T17:51:00Z | 0:25:40 | Halsted St & 21st St | Halsted St & Clybourn Ave | Halsted St & 21st St to Halsted St & Clybourn Ave | 13162 | 331 | 41.85378, -87.64665 | 41.909668, -87.648128 | 3.862298702 | ||
10 | 63A630ACCB226FB9 | member | docked_bike | 3 | 2020-12-01T16:47:00Z | 2020-12-01T17:01:00Z | 0:13:40 | Clinton St & Washington Blvd | Halsted St & Clybourn Ave | Clinton St & Washington Blvd to Halsted St & Clybourn Ave | WL-012 | 331 | 41.88338, -87.64117 | 41.909668, -87.648128 | 1.851270921 | ||
11 | E17C812526F9D612 | member | classic_bike | 4 | 2020-12-16T19:26:00Z | 2020-12-16T19:41:00Z | 0:14:22 | Franklin St & Lake St | Halsted St & Clybourn Ave | Franklin St & Lake St to Halsted St & Clybourn Ave | TA1307000111 | 331 | 41.885837, -87.6355 | 41.909668, -87.648128 | 1.770041463 | ||
12 | 04B9C42C9716C149 | member | classic_bike | 6 | 2020-12-11T11:18:00Z | 2020-12-11T11:27:00Z | 0:09:12 | Clark St & Chicago Ave | Halsted St & Clybourn Ave | Clark St & Chicago Ave to Halsted St & Clybourn Ave | 13303 | 331 | 41.89675, -87.63089 | 41.909668, -87.648128 | 1.257971375 | ||
13 | 3F7080AE9A112A65 | member | classic_bike | 2 | 2020-12-21T13:48:00Z | 2020-12-21T13:59:00Z | 0:10:08 | Clark St & Chicago Ave | Halsted St & Clybourn Ave | Clark St & Chicago Ave to Halsted St & Clybourn Ave | 13303 | 331 | 41.89675, -87.63089 | 41.909668, -87.648128 | 1.257971375 | ||
14 | DFF386148F369DFF | casual | docked_bike | 6 | 2020-12-04T16:48:00Z | 2020-12-04T17:17:00Z | 0:28:52 | Michigan Ave & Pearson St | Halsted St & Clybourn Ave | Michigan Ave & Pearson St to Halsted St & Clybourn Ave | 13034 | 331 | 41.89766, -87.62351 | 41.909668, -87.648128 | 1.513630094 | ||
15 | 6C6D711A027111B2 | casual | docked_bike | 6 | 2020-12-04T16:48:00Z | 2020-12-04T17:17:00Z | 0:28:21 | Michigan Ave & Pearson St | Halsted St & Clybourn Ave | Michigan Ave & Pearson St to Halsted St & Clybourn Ave | 13034 | 331 | 41.89766, -87.62351 | 41.909668, -87.648128 | 1.513630094 | ||
16 | E91724E781837DD6 | member | classic_bike | 1 | 2020-12-27T13:51:00Z | 2020-12-27T14:04:00Z | 0:13:44 | Michigan Ave & Pearson St | Halsted St & Clybourn Ave | Michigan Ave & Pearson St to Halsted St & Clybourn Ave | 13034 | 331 | 41.89766, -87.62351 | 41.909668, -87.648128 | 1.513630094 | ||
17 | F4299DE0DFDDFD36 | member | classic_bike | 1 | 2020-12-27T14:41:00Z | 2020-12-27T15:05:00Z | 0:24:50 | Michigan Ave & Pearson St | Halsted St & Clybourn Ave | Michigan Ave & Pearson St to Halsted St & Clybourn Ave | 13034 | 331 | 41.89766, -87.62351 | 41.909668, -87.648128 | 1.513630094 | ||
18 | 0512A33336892105 | member | classic_bike | 6 | 2020-12-04T13:04:00Z | 2020-12-04T13:14:00Z | 0:09:58 | Ashland Ave & Augusta Blvd | Halsted St & Clybourn Ave | Ashland Ave & Augusta Blvd to Halsted St & Clybourn Ave | 13248 | 331 | 41.899643, -87.6677 | 41.909668, -87.648128 | 1.221793274 | ||
19 | D3C1914BB8301A7F | member | classic_bike | 1 | 2020-12-13T17:29:00Z | 2020-12-13T17:34:00Z | 0:05:04 | Larrabee St & Menomonee St | Halsted St & Clybourn Ave | Larrabee St & Menomonee St to Halsted St & Clybourn Ave | TA1306000007 | 331 | 41.91468, -87.64332 | 41.909668, -87.648128 | 0.425489373 | ||
20 | 9F21F589917D69CC | casual | classic_bike | 1 | 2020-12-06T12:12:00Z | 2020-12-06T13:15:00Z | 1:02:14 | Clark St & Lincoln Ave | Halsted St & Clybourn Ave | Clark St & Lincoln Ave to Halsted St & Clybourn Ave | 13179 | 331 | 41.915689, -87.6346 | 41.909668, -87.648128 | 0.810492488 | ||
21 | BCC1E5EEDBB31529 | casual | classic_bike | 1 | 2020-12-06T12:12:00Z | 2020-12-06T13:15:00Z | 1:02:04 | Clark St & Lincoln Ave | Halsted St & Clybourn Ave | Clark St & Lincoln Ave to Halsted St & Clybourn Ave | 13179 | 331 | 41.915689, -87.6346 | 41.909668, -87.648128 | 0.810492488 | ||
22 | AFE6DE4D8061D6F5 | member | classic_bike | 1 | 2020-12-06T14:54:00Z | 2020-12-06T15:04:00Z | 0:09:10 | Clark St & Lincoln Ave | Halsted St & Clybourn Ave | Clark St & Lincoln Ave to Halsted St & Clybourn Ave | 13179 | 331 | 41.915689, -87.6346 | 41.909668, -87.648128 | 0.810492488 | ||
23 | CAAABC0E9EA76453 | member | classic_bike | 1 | 2020-12-06T15:48:00Z | 2020-12-06T15:57:00Z | 0:08:57 | Clark St & Lincoln Ave | Halsted St & Clybourn Ave | Clark St & Lincoln Ave to Halsted St & Clybourn Ave | 13179 | 331 | 41.915689, -87.6346 | 41.909668, -87.648128 | 0.810492488 | ||
24 | EB83EB7EC542A6FB | member | classic_bike | 5 | 2020-12-10T09:43:00Z | 2020-12-10T09:53:00Z | 0:09:40 | Clark St & Lincoln Ave | Halsted St & Clybourn Ave | Clark St & Lincoln Ave to Halsted St & Clybourn Ave | 13179 | 331 | 41.915689, -87.6346 | 41.909668, -87.648128 | 0.810492488 | ||
25 | 5B9A60CCDD6A98C0 | member | classic_bike | 7 | 2020-12-12T19:25:00Z | 2020-12-12T19:32:00Z | 0:06:46 | Clark St & Lincoln Ave | Halsted St & Clybourn Ave | Clark St & Lincoln Ave to Halsted St & Clybourn Ave | 13179 | 331 | 41.915689, -87.6346 | 41.909668, -87.648128 | 0.810492488 | ||
26 | 82B443DA84AA3BEE | member | classic_bike | 2 | 2020-12-14T14:55:00Z | 2020-12-14T15:03:00Z | 0:08:14 | Clark St & Lincoln Ave | Halsted St & Clybourn Ave | Clark St & Lincoln Ave to Halsted St & Clybourn Ave | 13179 | 331 | 41.915689, -87.6346 | 41.909668, -87.648128 | 0.810492488 | ||
27 | 5C13C2A9F537FAF4 | member | classic_bike | 2 | 2020-12-14T15:43:00Z | 2020-12-14T15:53:00Z | 0:09:19 | Clark St & Lincoln Ave | Halsted St & Clybourn Ave | Clark St & Lincoln Ave to Halsted St & Clybourn Ave | 13179 | 331 | 41.915689, -87.6346 | 41.909668, -87.648128 | 0.810492488 | ||
28 | 06C887C108F035AB | member | classic_bike | 1 | 2020-12-27T14:02:00Z | 2020-12-27T14:14:00Z | 0:11:30 | Clark St & Lincoln Ave | Halsted St & Clybourn Ave | Clark St & Lincoln Ave to Halsted St & Clybourn Ave | 13179 | 331 | 41.915689, -87.6346 | 41.909668, -87.648128 | 0.810492488 | ||
29 | D084CF51C605C6F1 | member | classic_bike | 3 | 2020-12-29T10:28:00Z | 2020-12-29T10:39:00Z | 0:10:44 | Clark St & Lincoln Ave | Halsted St & Clybourn Ave | Clark St & Lincoln Ave to Halsted St & Clybourn Ave | 13179 | 331 | 41.915689, -87.6346 | 41.909668, -87.648128 | 0.810492488 | ||
30 | 03926929025B28C4 | casual | classic_bike | 3 | 2020-12-29T10:29:00Z | 2020-12-29T10:39:00Z | 0:10:30 | Clark St & Lincoln Ave | Halsted St & Clybourn Ave | Clark St & Lincoln Ave to Halsted St & Clybourn Ave | 13179 | 331 | 41.915689, -87.6346 | 41.909668, -87.648128 | 0.810492488 | ||
31 | E0D35323A3F37120 | member | classic_bike | 4 | 2020-12-30T14:30:00Z | 2020-12-30T14:41:00Z | 0:11:36 | Clark St & Lincoln Ave | Halsted St & Clybourn Ave | Clark St & Lincoln Ave to Halsted St & Clybourn Ave | 13179 | 331 | 41.915689, -87.6346 | 41.909668, -87.648128 | 0.810492488 | ||
32 | B31E1E6AE33A971A | casual | classic_bike | 6 | 2020-12-04T11:04:00Z | 2020-12-04T11:10:00Z | 0:05:54 | Bissell St & Armitage Ave | Halsted St & Clybourn Ave | Bissell St & Armitage Ave to Halsted St & Clybourn Ave | 13059 | 331 | 41.91844, -87.65222 | 41.909668, -87.648128 | 0.641575778 | ||
33 | 29A5EF9EB208696C | member | classic_bike | 7 | 2020-12-19T16:23:00Z | 2020-12-19T16:37:00Z | 0:13:53 | Wilton Ave & Belmont Ave | Halsted St & Clybourn Ave | Wilton Ave & Belmont Ave to Halsted St & Clybourn Ave | TA1307000134 | 331 | 41.94018, -87.65304 | 41.909668, -87.648128 | 2.123278511 | ||
34 | 24D4230E15AB999C | member | classic_bike | 4 | 2020-12-23T17:32:00Z | 2020-12-23T17:48:00Z | 0:16:13 | Wilton Ave & Belmont Ave | Halsted St & Clybourn Ave | Wilton Ave & Belmont Ave to Halsted St & Clybourn Ave | TA1307000134 | 331 | 41.94018, -87.65304 | 41.909668, -87.648128 | 2.123278511 | ||
35 | B487D55039F024CC | member | classic_bike | 7 | 2020-12-05T14:14:00Z | 2020-12-05T14:33:00Z | 0:19:13 | Halsted St & Roscoe St | Halsted St & Clybourn Ave | Halsted St & Roscoe St to Halsted St & Clybourn Ave | TA1309000025 | 331 | 41.94367, -87.64895 | 41.909668, -87.648128 | 2.34972925 | ||
36 | 16B7FFA064B5D6E7 | member | classic_bike | 5 | 2020-12-10T23:47:00Z | 2020-12-11T00:11:00Z | 0:23:15 | Southport Ave & Waveland Ave | Halsted St & Clybourn Ave | Southport Ave & Waveland Ave to Halsted St & Clybourn Ave | 13235 | 331 | 41.94815, -87.66394 | 41.909668, -87.648128 | 2.780353473 | ||
37 | F132B0A5A3A8E618 | member | classic_bike | 7 | 2020-12-05T08:59:00Z | 2020-12-05T09:28:00Z | 0:28:39 | Michigan Ave & 18th St | Halsted St & Clybourn Ave | Michigan Ave & 18th St to Halsted St & Clybourn Ave | 13150 | 331 | 41.857813, -87.62455 | 41.909668, -87.648128 | 3.782615327 | ||
38 | F8A1B3A64886E6DE | member | classic_bike | 5 | 2020-12-17T09:09:00Z | 2020-12-17T09:41:00Z | 0:32:26 | Michigan Ave & 18th St | Halsted St & Clybourn Ave | Michigan Ave & 18th St to Halsted St & Clybourn Ave | 13150 | 331 | 41.857813, -87.62455 | 41.909668, -87.648128 | 3.782615327 | ||
39 | 2BB5A5176858AF4F | member | classic_bike | 6 | 2020-12-04T15:35:00Z | 2020-12-04T16:01:00Z | 0:25:40 | Morgan St & Polk St | Halsted St & Clybourn Ave | Morgan St & Polk St to Halsted St & Clybourn Ave | TA1307000130 | 331 | 41.871737, -87.65103 | 41.909668, -87.648128 | 2.625068488 | ||
40 | F7BC88663BD0E589 | member | classic_bike | 7 | 2020-12-05T11:22:00Z | 2020-12-05T11:39:00Z | 0:16:59 | Green St & Randolph St | Halsted St & Clybourn Ave | Green St & Randolph St to Halsted St & Clybourn Ave | 13053 | 331 | 41.883668, -87.64867 | 41.909668, -87.648128 | 1.796671786 | ||
41 | F2434FA3DA7E375B | member | classic_bike | 2 | 2020-12-21T15:48:00Z | 2020-12-21T15:58:00Z | 0:10:12 | Green St & Randolph St | Halsted St & Clybourn Ave | Green St & Randolph St to Halsted St & Clybourn Ave | 13053 | 331 | 41.883668, -87.64867 | 41.909668, -87.648128 | 1.796671786 | ||
42 | B9B5896F3987E87C | member | docked_bike | 4 | 2020-12-02T19:14:00Z | 2020-12-02T19:24:00Z | 0:10:12 | Orleans St & Merchandise Mart Plaza | Halsted St & Clybourn Ave | Orleans St & Merchandise Mart Plaza to Halsted St & Clybourn Ave | TA1305000022 | 331 | 41.888243, -87.63639 | 41.909668, -87.648128 | 1.598702019 | ||
43 | 48317544FE71CA3D | casual | docked_bike | 5 | 2020-12-03T05:24:00Z | 2020-12-03T05:36:00Z | 0:11:45 | Orleans St & Merchandise Mart Plaza | Halsted St & Clybourn Ave | Orleans St & Merchandise Mart Plaza to Halsted St & Clybourn Ave | TA1305000022 | 331 | 41.888243, -87.63639 | 41.909668, -87.648128 | 1.598702019 | ||
44 | 9E880C15C20F4C0E | member | classic_bike | 7 | 2020-12-05T07:47:00Z | 2020-12-05T08:03:00Z | 0:15:11 | Orleans St & Merchandise Mart Plaza | Halsted St & Clybourn Ave | Orleans St & Merchandise Mart Plaza to Halsted St & Clybourn Ave | TA1305000022 | 331 | 41.888243, -87.63639 | 41.909668, -87.648128 | 1.598702019 | ||
45 | 3946CF247E7412D8 | member | classic_bike | 1 | 2020-12-06T09:43:00Z | 2020-12-06T09:57:00Z | 0:14:09 | Orleans St & Merchandise Mart Plaza | Halsted St & Clybourn Ave | Orleans St & Merchandise Mart Plaza to Halsted St & Clybourn Ave | TA1305000022 | 331 | 41.888243, -87.63639 | 41.909668, -87.648128 | 1.598702019 | ||
46 | 5762DE06DBBF5E56 | member | classic_bike | 5 | 2020-12-17T17:24:00Z | 2020-12-17T17:36:00Z | 0:11:48 | Orleans St & Merchandise Mart Plaza | Halsted St & Clybourn Ave | Orleans St & Merchandise Mart Plaza to Halsted St & Clybourn Ave | TA1305000022 | 331 | 41.888243, -87.63639 | 41.909668, -87.648128 | 1.598702019 | ||
47 | 480DD48DCE8F8F07 | member | classic_bike | 2 | 2020-12-28T15:13:00Z | 2020-12-28T15:22:00Z | 0:09:13 | Orleans St & Merchandise Mart Plaza | Halsted St & Clybourn Ave | Orleans St & Merchandise Mart Plaza to Halsted St & Clybourn Ave | TA1305000022 | 331 | 41.888243, -87.63639 | 41.909668, -87.648128 | 1.598702019 | ||
48 | B044F542D7E52FF5 | member | classic_bike | 4 | 2020-12-23T13:18:00Z | 2020-12-23T13:37:00Z | 0:19:16 | Lake Shore Dr & Ohio St | Halsted St & Clybourn Ave | Lake Shore Dr & Ohio St to Halsted St & Clybourn Ave | TA1306000029 | 331 | 41.89257, -87.614492 | 41.909668, -87.648128 | 2.094717503 | ||
49 | D000F7DF98EB762C | member | classic_bike | 5 | 2020-12-31T17:21:00Z | 2020-12-31T17:38:00Z | 0:17:25 | Lake Shore Dr & Ohio St | Halsted St & Clybourn Ave | Lake Shore Dr & Ohio St to Halsted St & Clybourn Ave | TA1306000029 | 331 | 41.89257, -87.614492 | 41.909668, -87.648128 | 2.094717503 | ||
50 | 3BDEE3EFF60A7715 | casual | classic_bike | 2 | 2020-12-21T12:24:00Z | 2020-12-21T12:44:00Z | 0:20:29 | Damen Ave & Chicago Ave | Halsted St & Clybourn Ave | Damen Ave & Chicago Ave to Halsted St & Clybourn Ave | 13132 | 331 | 41.895769, -87.67722 | 41.909668, -87.648128 | 1.777778451 | ||
December_2020_trimmed_v2 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
J2:J50 | J2 | =CONCAT(H2," to ", I2) |