Hi all,
I'm working on a project for work and there's thousands of rows of data. The issue I'm dealing with involves two columns "date" and "month": Here is an example:
Date Month 8/10/2015 1 9/7/2015 2 9/19/2015 2 10/20/2015 3 11/8/2015 4 12/9/2015 5 12/15/2015 5 12/28/2015 5 1/28/2016 6 2/7/2016 7 2/13/2016 7 2/28/2016 7 3/25/2016 8 4/10/2016 9 5/8/2016 10 5/15/2016 10 5/30/2016 10 5/31/2016 10 and so on... and so forth...
So basically I want the "month" column to count 1,2,3,4 (more like "1,1,1,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4......) consecutively into infinity with corresponding changes in the "date" columns month. Because there may be multiple dates listed for certain months, there may be more 1's than 2's, etc etc. So in the example above, all of August 2015 is labeled "1" while September 2015 is labeled "2" and so on, and if the year changes from 2015 to 2016 then the count continues and does not restart. Anyone have any input or advice on how to accomplish this?
Currently, I am just filling in the "month" column by typing in 1,1,1,1,1,2,2,2,2,2,3,3,3,3,3,4,4,4,4,4 manually but I would love to automate this process if possible.
Thank you for any help! You guys are amazing here!
Bookmarks