Adding multiple values against a unique ID?

DanielS95

New Member
Joined
Feb 6, 2020
Messages
3
Office Version
  1. 2016
Platform
  1. Windows
I'm not even sure where to start with this one, so apologies if the title seems a little strange.

I have a report from work that lists all of the outstanding fees people, however, if they have more than one fee outstanding it lists on separate rows. So for example, it will appear like this;

Unique IDFirst NameSurnameFee TypeFee
1234DanSmithMembership Jan£5
1234DanSmithMembership Feb£10
9874AaronWrightMembership Jan£5

I want to do a mail merge and send an email to everyone telling them how much is outstanding. Ideally I'd like to have one line per person with a total fee, rather than individual fees per month etc. My spreadsheet is over 1000 rows and some people have 5+ entries, some 1, some 2 etc. How can I total all of the fees based off the unique ID?

If I am barking up the wrong tree and need to do something else entirely, your help would also be appreciated!

Thanks in advance!
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Copy the column with ID to a new worksheet (I did it below), go to Ribbon->Data->Dta tools->Remove Duplicates.
Then you will have the list of people who should get a mail. Next add formulas which calculate how many fees are outstanding and their total amount.

Book1
ABCDE
11234DanSmithMembership Jan5
21234DanSmithMembership Feb10
39874AaronWrightMembership Jan5
4
5
6
7IDnumber of feestotal fees
81234215
9987415
Sheet4
Cell Formulas
RangeFormula
B8:B9B8=COUNTIF($A$1:$A$3,A8)
C8:C9C8=SUMIF($A$1:$A$3,A8,$E$1:$E$3)
 
Upvote 0
Thanks for the feedback and good luck!

J.Ty.
 
Upvote 0

Forum statistics

Threads
1,214,921
Messages
6,122,280
Members
449,075
Latest member
staticfluids

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top