SOLVED

Summing data if date in another column is duplicated and removing unneccessary data

Copper Contributor

Hello,

 

I am not sure I can clearly explain what I need, but I'll try my best. I've been struggling with it for a few days now, so I thought I might reach out for help.

 

I have two datasets:

1. Number of customers for every working day for 30 months
2. Number of calls and emails from customers for every day for 30 months - this data has weekends and bank holidays included

 

I need the data to be comparable, so I need Dataset 1. to stay as it is but in Dataset 2. I need to:
- change Saturdays and Sundays into Mondays (I've already done it. As I want to add customer queries from weekends to Mondays)
- Based on the dates in Column C, I need to add values in Columns D and E: Now I have 3 Mondays each week, so when the same date appears 3 times in Column C, I need it to appear only once, summing up the values in Columns D and E, so instead of having this:

 

DateCallsEmails
07/01/201982
07/01/201921
07/01/2019256

 

I need this:

 

DateCallsEmails
07/01/2019359

 

I was trying to figure out how to do that, I tried to use the SUMIF function, but I'm not sure it's the correct approach. Perhaps someone would be able to help as the idea of making it manually makes me feel like a fool.

I'm attaching a sample file to make it a little bit more clear.

 

 

4 Replies

@Roksana Consider using a Pivot Table as demonstrated in the attached file.

Screenshot 2021-08-09 at 12.19.47.png

@Riny_van_Eekelen
That's brilliant! I haven't thought about it, thank you so much!
best response confirmed by Roksana (Copper Contributor)
Solution

@Roksana Ooops! just realized that the dates are not synchronized between customers on one side and Calls and Emails on the other. Better to create a table with one Date column and then summarize with a pivot table.

 

Edit: Alternatively, use Power Pivot or Power Query. Attached a file that contains three different solutions, all leading to the same end result.

@Riny_van_Eekelen 

 

Yeah, I've only included one date column in my table, and it worked perfectly. Thanks again!

1 best response

Accepted Solutions
best response confirmed by Roksana (Copper Contributor)
Solution

@Roksana Ooops! just realized that the dates are not synchronized between customers on one side and Calls and Emails on the other. Better to create a table with one Date column and then summarize with a pivot table.

 

Edit: Alternatively, use Power Pivot or Power Query. Attached a file that contains three different solutions, all leading to the same end result.

View solution in original post