+ Reply to Thread
Results 1 to 5 of 5

Macro for addition

  1. #1
    Registered User
    Join Date
    06-07-2006
    Posts
    58

    Macro for addition

    Hi all,
    I need some help for the following (should be easy for most of you)

    In column A, I have numbers. in column B, C... have more prices.
    I want - for each modification of values in column A - to do the Summary of the values in Cell in "B" and that summary

    Exemple :
    - From Cell A1 to A10, value = 1.00
    I want in Cell D10, the summary of Cells B1 to B10
    - From Cell A11 to A25, value = 1.20
    I want in Cell D25, the summary of cells B11 to B25
    and so on

    PS: I do not know te different value in column "A"
    Thanks in advance
    Herve

  2. #2
    Forum Contributor stevebriz's Avatar
    Join Date
    09-07-2006
    Location
    Santiago Chile
    Posts
    389
    So you know when to summarise because the value changes in the next cell of A?? correct?
    VBA - The Power Behind the Grid

    Posting a sample of your workbook makes it easier to look at the Issue.

  3. #3
    Registered User
    Join Date
    06-07-2006
    Posts
    58
    Steve,
    that is right,
    For each change of value in A I want the Sum of B in cell D.

  4. #4
    Forum Contributor stevebriz's Avatar
    Join Date
    09-07-2006
    Location
    Santiago Chile
    Posts
    389
    try this:

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    06-07-2006
    Posts
    58
    Steve, this was exactly was I wanted
    cheers

+ 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