Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago

Creating New Table with SUMPRODUCT from Existing Tables

I have 2 separate tables (PmtTable, RateTable) that I'd like to use to create a new table (NewTable) that has a SUMPRODUCT calculation that is derived using the two original tables.  Using Excel it would look something like this:   
=SUMPRODUCT('RateTable'[A:A], 'RateTable'[E:E], 'PmtTable'[E:E] / SUMPRODUCT('RateTable'[A:A], 'PmtTable'[E:E])

 

RateTable

  A            B               C                D                 E

TermRate_012Rate_024Rate_036Rate_048
1.05438.051989.050373.04967
2.05318.052763.055737.04896

 

PmtTable

 A              B               C               D                 E

TermRate_012Rate_024Rate_036Rate_048
181441397042580418862
281780398702591119273

 

1 Reply

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous 

     

    There seems to be something wrong with the code you provided, and I don't quite understand what you need.

     

    If you can, please provide some dummy data and desired results. It is best presented in table form.

     

    Regards,

    Nono Chen