+ Reply to Thread
Results 1 to 3 of 3

Turn Sumproduct Calculation Into vba

Hybrid View

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

    Re: Turn Sumproduct Calculation Into vba

    Try this

    Sub t()
    Dim lr As Long
     lr = Worksheets("Download").Cells(Rows.Count, "i").End(xlUp).Row
     Range("G4").Resize(Cells(Rows.Count, "h").End(xlUp).Row) _
        .Value = "=SUMPRODUCT((Download!$I$4:$I$" & lr & "=""CUSTOMER1"")*(Download!$H$4:$H" & lr & "=CUSTOMER1!H4)*(Download!$G$4:$G$" & lr & "))"
    
    End Sub
    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