+ Reply to Thread
Results 1 to 5 of 5

Total by location

  1. #1
    Registered User
    Join Date
    03-13-2007
    Posts
    71

    Total by location

    Morning,

    I have attached a simple example of what I am trying to achieve.

    In the example, I have a list of shops. Each shop shows its location and revenue.

    What I need is a generic formula which will Sum all the revenue in the same location. I.e. Eastleigh = £200

    However, in the actual document there maybe upto 100 different locations, and these may change on a daily basis.

    Therefore, I am looking for Excel to identify all the locations which are the same and Sum the corresponding revenue. In a document which potentially has a changing number of locations.

    Many thanks

    Howardjo
    Attached Files Attached Files

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Maybe a dynamic pivot table.

    See pivot for example and link to make it dynamic and a pivot demo link

    http://www.contextures.com/xlPivot01.html

    http://www.datapigtechnologies.com/f...es/pivot1.html

    or take a look at sumproduct

    http://www.contextures.com/xlPivot01.html

    VBA Noob
    Attached Files Attached Files
    Last edited by VBA Noob; 09-24-2007 at 05:44 AM.
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Good morning howardjo

    Try using a pivot table. Do not use the Excel help system - it's utter rubbish and will just bamboozle you.

    Highlight the range, go to Data > Pivot Table & Pivot Chart Report and jump right in and experiment for yourself.

    HTH

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

  4. #4
    Registered User
    Join Date
    03-13-2007
    Posts
    71
    Ok, will try this. Many thanks

  5. #5
    Valued Forum Contributor
    Join Date
    08-31-2007
    Location
    SW Ireland
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2311 Build 16.0.17029.20068) 32-bit
    Posts
    523
    You could also check out the Data|Subtotals facility shown on the Data menu.

+ 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