bksbksbks
New Member
- Joined
- Nov 18, 2024
- Messages
- 12
- Office Version
- 365
- 2019
- Platform
- Windows
- MacOS
- Web
In the data below, the grouping data is generated in a CSV, then formulated to output the grouping ID (A) and the jobs within that grouping (B). I'm trying to find the most common job within that grouping, which will sometimes have a single result in the CSV (like Grouping1) or multiple results (like Grouping2).
In Grouping1 there is only result, so the three jobs within that result are each the most common. In Grouping2 there are two results, so counting all of the jobs between the results finds that Pump Deli Clerk and PUMP MGR both occur twice, making them the most common results.
I have attempted several variations of mode.mult(), index(), match(), and everything else I can think of, but nothing wants to play well with textsplit() to pull out the job titles. How can I find the most common job within each grouping?
As always, thanks to all of the dedicated volunteers who spend their time helping out everyone on their Excel learning journeys!
Book1 | ||||||
---|---|---|---|---|---|---|
A | B | C | D | |||
1 | Data | Desired Result | ||||
2 | id | output | Grouping1 | Grouping2 | ||
3 | Grouping1 | CIO|DIRECTOR OF IS|NETWORK MGR | CIO|DIRECTOR OF IS|NETWORK MGR | Pump Deli Clerk|PUMP MGR | ||
4 | Grouping2 | Pump Deli Clerk|PUMP MGR|PUMP DIRECTOR | ||||
5 | Grouping2 | PUMP MGR|PUMP FOOD COURT AST MGR|PUMP FOOD COURT ASSOCIATE|PUMP SALES ASSOCIATE|PUMP MAINTENANCE CLERK|STORE ASSOC UNDER 19|PUMP 1ST ASST MGR|Pump Deli Clerk | ||||
Sheet1 |
In Grouping1 there is only result, so the three jobs within that result are each the most common. In Grouping2 there are two results, so counting all of the jobs between the results finds that Pump Deli Clerk and PUMP MGR both occur twice, making them the most common results.
I have attempted several variations of mode.mult(), index(), match(), and everything else I can think of, but nothing wants to play well with textsplit() to pull out the job titles. How can I find the most common job within each grouping?
As always, thanks to all of the dedicated volunteers who spend their time helping out everyone on their Excel learning journeys!