+ Reply to Thread
Results 1 to 3 of 3

Turn Sumproduct Calculation Into vba

  1. #1
    Valued Forum Contributor
    Join Date
    11-15-2007
    Location
    England
    MS-Off Ver
    Office Pro 2003 / 2010
    Posts
    423

    Turn Sumproduct Calculation Into vba

    Hi,

    I have this calcualtion in G4 on a worksheet. Is there a way to get a macro to put this calculation into G4 and copy it to bottom of the data the range of which moves up and down on a monthly basis?

    =SUMPRODUCT((Download!I4:I54862="CUSTOMER1")*(Download!H4:H54862=CUSTOMER1!H4)*(Download!G4:G54862))

  2. #2
    Valued Forum Contributor
    Join Date
    11-15-2007
    Location
    England
    MS-Off Ver
    Office Pro 2003 / 2010
    Posts
    423

    Re: Turn Sumproduct Calculation Into vba

    I have come up with this but it doesn't get around the range problem. i.e. 54858 needs replacing with siommething like lrow.

    Please Login or Register  to view this content.

  3. #3
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Turn Sumproduct Calculation Into vba

    Try this

    Please Login or Register  to view this content.
    Last edited by mike7952; 09-20-2012 at 06:12 AM.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

+ 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