sample data:
Column A Column B Column C Column D
Example 1 5 Example 1 13
Example 1 2 Example 2 8
Example 1 4
Example 1 2
Example 2 2
Example 2 4
Example 3 2
bad pseudo:
- Loops through Column A checking for duplicates
- If duplicate found, increase duplicate counter and store in array?
- Then write 'Example #' to Column C
- Use counter to jump between rows in Column B and sum up values and output in Column D
english:
- Add up all values for each 'Example #'
- Output the 'Example #' to specified Column/Row
- Sum values and output to specified Column/Row
Is there an easier way to do it?