Results 1 to 3 of 3

Thread: Automating a sum divided by another sum
Thanks Thanks: 0 Likes Likes: 0

  1. #1
    New Member
    Join Date
    Dec 2002
    Posts
    15
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    First time using Colo's utility, may have messed up. Anyway, each week, this sheet is populated with new data, it is a rolling 13 week set, so next week it will start with week of 9/13, and a new week - 12/6 will appear. I would like to automate the formula in R11 such that it builds back one week with each new week of data, e.g. right now it sums up rows M11 to Q11, and divides by M14 to Q14.Next week, I would like it to sum up L11 to Q11 and divide by L14 to Q14...and the next week K11 to Q11 etc. Ultimately, once all 13 weeks of row 11 have data in them (~8 weeks) this process would stop. But, this would be a weekly macro, when it gets there, I would just stop running the macro - if I even need a macro here. Any thoughts, very stuck on this one!

    Thanks.



    ******** ******************** ************************************************************************>
    Microsoft Excel - Book3___Running: xl97 : OS = Windows NT 4
    (F)ile (E)dit (V)iew (I)nsert (O)ptions (T)ools (D)ata (W)indow (H)elp (A)bout
    =

    A
    B
    C
    D
    E
    F
    G
    H
    I
    J
    K
    L
    M
    N
    O
    P
    Q
    R
    9
    Sep`02 Sep`02 Sep`02 Sep`02 Oct`02 Oct`02 Oct`02 Oct`02 Nov`02 Nov`02 Nov`02 Nov`02 Nov`02
    10
    ProductTrend VOL 09/06 09/13 09/20 09/27 10/04 10/11 10/18 10/25 11/01 11/08 11/15 11/22 11/29Rolling 5 Week Share
    11
    U146560000000032101876553670310.33%
    12
    N 7.93M575718611803605397598603639040618913597595602811630605652478626624637808536173
    13
    N 1.46M10243611303011176311105911594511253111119711212811780111928811683011813197505
    14
    9.41M678153724833717160709662754985731443708792714939748409771975745329761475640710
    EarlyView Report Sheet

    [HtmlMaker 2.32] To see the formula in the cells just click on the cells hyperlink or click the Name box
    PLEASE DO NOT QUOTE THIS TABLE IMAGE ON SAME PAGE! OTHEWISE, ERROR OF JavaScript OCCUR.

  2. #2
    MrExcel MVP Aladin Akyurek's Avatar
    Join Date
    Feb 2002
    Location
    The Hague, NL
    Posts
    85,117
    Post Thanks / Like
    Mentioned
    44 Post(s)
    Tagged
    9 Thread(s)

    Default


    Not sure I understood your correctly, but...

    In R9 enter:

    =MATCH(1,INDEX((E11:P11<>0)+0,1,0),0)

    In R11 enter:

    =SUM(INDEX($E$11:$Q$11,1,R9):INDEX($E$11:$Q$11,1,13))/SUM(INDEX($E$14:$Q$14,1,R9):INDEX($E$14:$Q$14,1,13))


  3. #3
    New Member
    Join Date
    Dec 2002
    Posts
    15
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    perfect!

    thank you

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •