+ Reply to Thread
Results 1 to 4 of 4

Sumproduct changing range

  1. #1
    Registered User
    Join Date
    05-26-2006
    Posts
    31

    Sumproduct changing range

    I am using this function
    =SUMPRODUCT(($D$3:$D$1845="NZD")*($E$3:$E$1845))

    However the range change everyday how can I adjate the furmula to change acorrdnig to the range change?

    thanks

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Hi,

    Either extend your range down to say 10000 or use a named range to make it dynamic as per the attached link

    http://www.contextures.com/xlPivot01.html#Dynamic

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    You can define your ranges with a "dynamic range" i.e a range which adjusts itself automatically ...

    Insert Name Define
    give your range a name
    in the formula area type
    Please Login or Register  to view this content.
    HTH
    Carim

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,712
    Quote Originally Posted by Hapitaron10
    I am using this function
    =SUMPRODUCT(($D$3:$D$1845="NZD")*($E$3:$E$1845))
    With one criteria, SUMIF is better than SUMPRODUCT, i.e.

    =SUMIF($D$3:$D$1845,"NZD",$E$3:$E$1845)

    to make this variable, assuming you don't have numbers in E1 and E2 and you do have numbers all the way from E3 to your end row, whatever that is

    =SUMIF($D$3:INDEX($D:$D,COUNT(E:E)+ROW(D$3)-1),"NZD",$E$3:INDEX($E:$E,COUNT(E:E)+ROW(D$3)-1))

+ 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