+ Reply to Thread
Results 1 to 3 of 3

SUMIF with Dynamic Ranges

  1. #1
    Registered User
    Join Date
    06-12-2008
    Posts
    2

    SUMIF with Dynamic Ranges

    Hi,

    I need help with the following SUMIF:

    It is designed to sum up different scores for observations happening within a range in a column and discounted by a factor.

    =(SUMIF($K$2:$K$500,">=1",$V$2:$V$500)-SUMIF($K$2:$K$500,">=5",$V$2:$V$500))*2/3

    At the moment, the formula is static in that I need to manually specify (hand-code) the ranges for each and every cell.

    I want formula that is dynamic and I can just copy it into other cells.

    I tried specifying using Cell Name but it does not work in this specification.

    Example:
    =(SUMIF($K$2:$K$500,">=K1",$V$2:$V$500)-SUMIF($K$2:$K$500,">=K5",$V$2:$V$500))*2/3

    Any suggestions will be appreciated.

    Data Sample below:
    Col K Col V
    UNI_QTR VALUE
    1 2
    2 3
    3 7
    4 6
    5 8
    6 2

    Daniel

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Hello Daniel,

    You need to use &, i.e.

    =(SUMIF($K$2:$K$500,">="&K1,$V$2:$V$500)-SUMIF($K$2:$K$500,">="&K5,$V$2:$V$500))*2/3

    Note that as it stands you are summing column V for values in K >= to K1 but < K5

  3. #3
    Registered User
    Join Date
    06-12-2008
    Posts
    2

    Many thanks

    I knew that it has be to something as simple asthis.

    Many thanks.

    Daniel

+ 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