Results 1 to 5 of 5

sum cell with multiple criteria using do loop and a function

Threaded View

  1. #1
    Registered User
    Join Date
    09-27-2012
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    3

    sum cell with multiple criteria using do loop and a function

    Hi everybody,

    if someone can help me: I try to sum amounts based on 3 criteria and show the resulting sums in another location (same or not worksheet/workbook). With the example below it will be easier to explain:
    I have this (thousand rows):
    Investor Name Exchange where the investor intervene Financial products bought by the investor Amounts purchased
    A London bonds 10
    A London bonds 10
    A London bonds 10
    A London stocks 10
    A NY bonds 10
    A NY stocks 10
    A Paris stocks 10
    A Paris stocks 10
    B London bonds 10
    B London bonds 10
    B London stocks 10

    I want this:
    Investor Name Exchange where the investor intervene Financial products bought by the investor Amounts purchased
    A London bonds 30
    A London stocks 10
    A NY bonds 10
    A NY stocks 10
    A Paris stocks 20
    B London bonds 20
    B London stocks 10

    I used a long time ago a macro which execute this using at the cell level ( sheetname.cells(i,j) ) a do loop, if condition and a function that sum the amount purchased, because I would like the caracteristics of each investor show next to the sum. Unfortunately I don't remember the code, I tried different ways but I missed something.

    Thanks for your help
    Last edited by beija; 09-27-2012 at 09:18 AM. Reason: need help

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