+ Reply to Thread
Results 1 to 2 of 2

Sumproduct with column variable

  1. #1
    Registered User
    Join Date
    07-15-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    2

    Sumproduct with column variable

    Dear Gurus,

    I'm just starting to use excel macro and in need of some advice to move forward. My main aim is to have a sumproduct with dynamic column range.
    The below codes works so far but when i tried to change the column as dynamic it's not working.

    Please Login or Register  to view this content.
    Then i change the following
    cell(1, 2).Formula = "=SUMPRODUCT((BUDGET!A5:A" & EndRow & "=A" & CurRow & ")*(BUDGET!$B$5:$B$3889=C2)*(BUDGET!$C$5:$C$3889=D2),BUDGET!$F$5:$F$3889)"

    Really appreciate any help given.

    Regards
    Min
    Last edited by Leith Ross; 07-17-2013 at 01:21 AM. Reason: Added Code Tags

  2. #2
    Registered User
    Join Date
    07-15-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Sumproduct with column variable

    It's ok managed to to get it working.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] variable range within sumproduct
    By fabrecass in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-22-2013, 11:14 AM
  2. Replies: 6
    Last Post: 04-14-2012, 04:07 AM
  3. Replies: 4
    Last Post: 01-14-2011, 09:30 PM
  4. 3rd variable in SUMPRODUCT formula
    By scaffdog845 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-13-2010, 02:54 PM
  5. [SOLVED] SumProduct with variable array
    By Lynn in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-21-2005, 03:06 PM

Tags for this Thread

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