+ Reply to Thread
Results 1 to 6 of 6

Sumproduct not working with a dropdown menu list

  1. #1
    Registered User
    Join Date
    02-01-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    4

    Post Sumproduct not working with a dropdown menu list

    I have a worksheet where I have a drop down list on cell A1 which contains regions (like West, Central, East). I have the regions defined as named ranges in my worksheet (which is another tab in the same sheet).

    I am trying to use this sumproduct formula instead of using multiple if's but it keeps giving me a value# error.
    =SUMPRODUCT((Program="Common")*(Task=D6)*(CELL("contents",A1)))

    so if west is selected in cell A1, the cell function in the formula is returning "West" in double quotes in the sumproduct formula, which is not being accepted as an array in the sumproduct formula.

    Can some one tell me how I can make it return as west and not "west" to make sumproduct recognise as an array.

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Sumproduct not working with a dropdown menu list

    Try

    =SUMPRODUCT((Program="Common")*(Task=D6)*INDIRECT(A1))

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Sumproduct not working with a dropdown menu list

    Maybe this...

    =SUMIFS(INDIRECT(A1),Program,"Common",Task,D6)

    If "West" is defined using functions like OFFSET then this will not work.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    02-01-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Sumproduct not working with a dropdown menu list

    it works...thanks a lot

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Sumproduct not working with a dropdown menu list

    Can't tell who you're replying to but in any case...

    You're welcome. We appreciate the feedback!

  6. #6
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Sumproduct not working with a dropdown menu list

    Your welcome.

    Using sumifs is probably better anyway

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Dynamic Dropdown Menu/List
    By liampog in forum Excel General
    Replies: 4
    Last Post: 08-22-2013, 08:35 PM
  2. dropdown list not working in validation
    By excel5111987 in forum Excel General
    Replies: 4
    Last Post: 08-06-2011, 12:06 PM
  3. SumProduct withNamed Range using dropdown list
    By clng in forum Excel General
    Replies: 6
    Last Post: 11-03-2010, 12:10 AM
  4. List box menu not working
    By jsmity in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-18-2010, 12:38 PM
  5. Range name dropdown list not working
    By gardo80 in forum Excel General
    Replies: 1
    Last Post: 07-17-2009, 01:15 PM

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