+ Reply to Thread
Results 1 to 3 of 3

Sumproduct

  1. #1
    Registered User
    Join Date
    09-04-2010
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    18

    Sumproduct

    Hi,

    How can I multiply two text variables (region * metric) to return corresponding index #. In the attached file, in cell D21 I created a list of all regions and in cell E21 I have listed all metric unique names. Now when a user selects a region and metric I'd like the result to display in cell C21. For example,

    Index Region Metric
    1 Global KPI 1

    Region range: D27:D110
    Metric range: E27:D110
    Index range (#s from 1-84): C27:C110

    I tried the following sumproduct formula in cell C21, but it doesn't seem to work:
    =SUMPRODUCT((D27:D110=D21)*(E27:D110=E21)*(C27:C110))

    Thanks!
    Attached Files Attached Files

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

    Re: Sumproduct

    There's a typo in your formula, you have a "D" which should be an "E".....and you have some trailing spaces in the data in D27:D110=D21

    You could get rid of those or try using TRIM function, i.e.

    =SUMPRODUCT((TRIM(D27:D110)=D21)*(E27:E110=E21),C27:C110)
    Audere est facere

  3. #3
    Registered User
    Join Date
    09-04-2010
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    18

    Re: Sumproduct

    Yay!!! It worked, thanks!

+ 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