I have the followin set of data (excerpt):
likes comments date date1
1 0 27jul2009 14apr2009
0 0 19sep2009 15apr2009
1 0 21sep2009 16apr2009
1 3 21sep2009 17apr2009
2 8 21nov2009 18apr2009
1 0 24nov2009 19apr2009
2 0 25nov2009 20sep2009
1 0 21dec2009 21sep2009
3 5 22dec2009 22apr2009
1 0 30dec2009 23apr2009
1 0 30dec2009 24apr2009
1 0 14jan2010 25apr2009
1 0 14jan2010 26apr2009
I would like to sum the variables likes and comments, if the date in date1 appears in date.
for Excel that woud be =SUMIF (range, criteria, [sum_range])
For example: 21sep2009 is in date1 and appears in date. So now all likes and commentst are summed up so in sum i have 2 likes and 3 comments for that date. I wish to have a new variable showing "2" and another variable showing "3" next to the date 21sep2009 in date1.
I hope someone can halp me on that!!
likes comments date date1
1 0 27jul2009 14apr2009
0 0 19sep2009 15apr2009
1 0 21sep2009 16apr2009
1 3 21sep2009 17apr2009
2 8 21nov2009 18apr2009
1 0 24nov2009 19apr2009
2 0 25nov2009 20sep2009
1 0 21dec2009 21sep2009
3 5 22dec2009 22apr2009
1 0 30dec2009 23apr2009
1 0 30dec2009 24apr2009
1 0 14jan2010 25apr2009
1 0 14jan2010 26apr2009
I would like to sum the variables likes and comments, if the date in date1 appears in date.
for Excel that woud be =SUMIF (range, criteria, [sum_range])
For example: 21sep2009 is in date1 and appears in date. So now all likes and commentst are summed up so in sum i have 2 likes and 3 comments for that date. I wish to have a new variable showing "2" and another variable showing "3" next to the date 21sep2009 in date1.
I hope someone can halp me on that!!

Comment