Results 1 to 3 of 3

Confused.com... Sumproduct or Sumif???

Threaded View

Ho-hum Confused.com... Sumproduct or... 03-31-2011, 04:14 PM
TMS Re: Confused.com...... 03-31-2011, 04:37 PM
Ho-hum Re: Confused.com...... 03-31-2011, 05:31 PM
  1. #3
    Registered User
    Join Date
    03-31-2011
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Confused.com... Sumproduct or Sumif???

    Ok, thank you so far, I can see it worked for the other guy... as I say, (Sorry!) I am a novice. What do I do with this?

    I've added the developer tab to the ribbon. And I've got to the point where I can create a macro. What do I do from this point?

    And, if I wanted to apply this rule to D15 (add a number) to B15 (Sum) would the macro read as follows?

    Private Sub Worksheet_Change(ByVal Target As Range)
    If Intersect(Target, Columns(2)) Is Nothing Then Exit Sub

    Application.EnableEvents = False
    Range("B15"&Target.Row) = Range("B15"&Target.Row) + Range("D15"&Target.Row)
    Range("D15"&Target.Row) = ""
    Application.EnableEvents = True

    End Sub

    Would I follow this process?
    (Select the cell to which I am to apply this to?)
    Macro
    Macro name "Add"
    Create
    Copy and paste the above macro to that specifc cell?

    I have tried this, it doesn't seem to work. like I say... true novice

    Where am I going wrong? I would like to apply this rule to the columns above an below the rows cited

    Many thanks...
    Last edited by Ho-hum; 03-31-2011 at 05:34 PM. Reason: To add context to my question

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