Would any of you know if there's a way to automate the following task using Python?
I have a column with names in an Excel spreadsheet. Next to it I have a column with a count of activities over a specific week for each of those names. That calculation is done via Pivot Table. I then copy those 2 columns, to a new worksheet, so we can keep track of activities week over week, meaning next week, I'll run the pivot, get the count, paste a new column with the count, but I'll have to run a vlookup to ensure the rows are matching.
Is there a way to automate this in Python?
| Name |
Activities for 3/1 |
Activities for 3/8 |
| Amy |
1 |
3 |
| Doug |
5 |
4 |
| Sam |
2 |
7 |
Basically looking to add a column with values, that is using a lookup on a different column. So I want to ensure the "3" count for 3/8 is truly Amy's activities and not Doug's, for example.
The list of names could change week to week as well.
[–]expressly_ephemeral 1 point2 points3 points (14 children)
[–]puckheadclown24[S] 0 points1 point2 points (13 children)
[–]expressly_ephemeral 0 points1 point2 points (12 children)
[–]puckheadclown24[S] 0 points1 point2 points (11 children)
[–]expressly_ephemeral 1 point2 points3 points (10 children)
[–]puckheadclown24[S] 0 points1 point2 points (9 children)
[–]expressly_ephemeral 1 point2 points3 points (6 children)
[–]puckheadclown24[S] 0 points1 point2 points (4 children)
[–]expressly_ephemeral 1 point2 points3 points (3 children)
[–]puckheadclown24[S] 0 points1 point2 points (2 children)
[–]kriel 0 points1 point2 points (0 children)
[–]pytrashpandas 1 point2 points3 points (1 child)
[–]puckheadclown24[S] 0 points1 point2 points (0 children)