+ Reply to Thread
Results 1 to 4 of 4

How much have donors given the charity?

  1. #1
    Registered User
    Join Date
    12-10-2008
    Location
    Wells, Somerset
    Posts
    18

    How much have donors given the charity?

    I have an excel 2007 spreadsheet with records showing individual donations from a large number of donors. The structure of the spreadsheet is essentially date, name, donation amount. Where a donor has given regularly, there are an equivalent number of records, one per donation.

    I need a formula or VBA macro that will tell me how much each donor has given in total. I started by sorting the spreadsheet by donor surnames, which gave me a block of records for each donor, but it will take me years to go through each surname to total up their donations. Is there a quick formula for this, or a VBA prog I can use?

    KB

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: How much have donors given the charity?

    Push your data into a Pivot Table (via Insert Tab on Ribbon)

    Set Name as Row Label and Donation Amount as Data Value Field
    (if you wish to further analyse by Month etc you can do but the above should suffice for time being based on your initial post)

  3. #3
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: How much have donors given the charity?

    Use a Pivot Table.
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  4. #4
    Registered User
    Join Date
    12-10-2008
    Location
    Wells, Somerset
    Posts
    18

    Re: How much have donors given the charity?

    Thank you both! An excellent discovery and an excellent result. In PHP I would have used a variable, read each line and added the sum to the variable for the same donor until the donor name changed, and then printed the variable, cleared it, started again on the next donor name, etc. This is miles easier.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1