+ Reply to Thread
Results 1 to 2 of 2

Moving total:an input field

  1. #1
    snn
    Guest

    Moving total:an input field

    I have columns Jan04 to Dec05. I have rows A to E below each of the columns.
    I have an input field say start month and end month. Depending on the input
    criteria I wish to have the totals for each row. i.e:- if the start month is
    Apr04 and end month is Mar05 , It should sum up the columns Apr04 to Mar05
    for each of the rows.
    --
    SNN

  2. #2
    Ragdyer
    Guest

    re: Moving total:an input field

    Say "Jan-04" to "Dec-05" is in B1 to Y1.
    Row labels "A" to "E" are in A2 to A6.
    Data is in B2 to Y6.

    Start date criteria is in Z1, and end date criteria is in AA1.

    Enter this formula in Z2:

    =SUMIF($B$1:$Y$1,">="&$Z$1,B2:Y2)-SUMIF($B$1:$Y$1,">"&$AA$1,B2:Y2)
    And drag down to copy.

    You could also try this:

    =SUMPRODUCT(($B$1:$Y$1>=$Z$1)*($B$1:$Y$1<=$AA$1)*B2:Y2)
    And drag down to copy.

    --
    HTH,

    RD

    ---------------------------------------------------------------------------
    Please keep all correspondence within the NewsGroup, so all may benefit !
    ---------------------------------------------------------------------------
    "snn" <[email protected]> wrote in message
    news:[email protected]...
    > I have columns Jan04 to Dec05. I have rows A to E below each of the

    columns.
    > I have an input field say start month and end month. Depending on the

    input
    > criteria I wish to have the totals for each row. i.e:- if the start month

    is
    > Apr04 and end month is Mar05 , It should sum up the columns Apr04 to Mar05
    > for each of the rows.
    > --
    > SNN



+ 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