+ Reply to Thread
Results 1 to 2 of 2

sumproduct but .... in reverse order

  1. #1
    Registered User
    Join Date
    09-16-2012
    Location
    Amsterdam
    MS-Off Ver
    Excel 2010
    Posts
    1

    sumproduct but .... in reverse order

    Hi guys

    I'm struggling with a problem. I'm trying to make a model that prf edicts the outcome osoccer matches. I have a great dataset available with all matches in The Netherlands since 1956.


    I'm trying to do the following:
    I have Three columns: match nr, score Ajax (Hollands no 1 club!!) and FADE
    I want to add a new column in excel, named P (Power) which indicates the strength (=probability of winning the next match) of Ajax at that very moment

    Take a look:

    A B C
    match match nr score Ajax FADE
    1 0 3 1
    2 1 1 0,5
    3 2 1 0,25
    4 3 3 0,125
    5 4 -1 0,0625
    6 5 0 0,03125
    7 6 2 0,015625
    8 7 5 0,0078125
    9 8 -1 0,00390625
    10 9 4 0,0019531d25


    The score P (in column D) in each row should be the sumproduct(B$1:Bx;Cx:C$1). Note that the
    column C should be reversed
    To illustrate this for row 10: (1*4+0,5*-1+0,25*5, etc). So column C should be reversed and then used as the input for a sumproduct with column B.
    The problem is that excel automatically neglects my formula sumproduct(B$1:Bx;Cx:C$1) and turns it into sumproduct(B$1:Bx;C$1Cx), giving the wrong answer!!!

    Do any of you have an elegant solution? One that don''t need creating new columns, but rather a in-memory solution?

    Thanks!!!! Greets from Amsterdam

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

    Re: sumproduct but .... in reverse order

    Try using OFFSET to reverse one column, e.g.

    =SUMPRODUCT(A1:A10,N(OFFSET(B1:B10,ROWS(B1:B10)-ROW(B1:B10)+MIN(ROW(B1:B10))-1,0,1)))
    Last edited by daddylonglegs; 09-16-2012 at 07:03 AM. Reason: revised to cater for start row not 1
    Audere est facere

+ 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