I am trying to add specific values from a CSV file if the user is the same. I can't explain it clearly so I will try to show you.
=====================
|E-mail | M-count |
|[email protected] | 12 |
|[email protected] | 8 |
|[email protected] | 13 |
|[email protected] | 2 |
=====================
Then it tries to add everything that belongs to a specific user:
=====================
|E-mail | Total |
|[email protected] | 25 |
|[email protected] | 8 |
|[email protected] | 2 |
=====================
I split the CSV and added the values that I need in a set, but I can't think of a way to add the values that I need. Any ideas?
Edit:
This is what my CSV looks like:
p_number,duration,clnup#
5436715524,00:02:26,2
6447654246,00:17:18,5
5996312484,00:01:19,1
5436715524,00:10:12,6
I would like to get the total duration and the total clnup# for each unique p_number. I am sorry for the confusion but the table above was just an example.