+ Reply to Thread
Results 1 to 4 of 4

sumif referencing a range based on a choice from a drop down

  1. #1
    Registered User
    Join Date
    03-08-2014
    Location
    McKinney, TX
    MS-Off Ver
    Excel 2010
    Posts
    2

    sumif referencing a range based on a choice from a drop down

    I have several different named ranges that I want to sum and the user chooses the range from a drop down box. I want to select the range based on that choice but when I reference the cell that contains the reference to the selected range I get a result ** 0, but no error. I realize I could use several nested "If" statements but I was looking for a more streamlined approach.

    here is the formula:

    =SUMIF(Regions,B4,worksheet!K13) K13 = the name ** the selected range.

    if I put the name ** the range directly into the formula I get the correct result.

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

    Re: sumif referencing a range based on a choice from a drop down

    Like this...

    =SUMIF(Regions,B4,INDIRECT(K13))

    However, this will not work if the named range is defined using functions like 0FFSET.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    03-08-2014
    Location
    McKinney, TX
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: sumif referencing a range based on a choice from a drop down

    Thanks that works

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

    Re: sumif referencing a range based on a choice from a drop down

    You're welcome. Thanks for the feedback!

+ 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. VBA referencing drop down menu, and calulating based on choice in menu
    By rheinevetter in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-20-2013, 08:16 PM
  2. [SOLVED] Autofill Based on Choice From Drop Down List?
    By jbakajust1 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-01-2012, 11:57 AM
  3. [SOLVED] How Can I return an adjacent value based on the choice of my drop down list?
    By William_IV in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-04-2012, 03:25 PM
  4. Excel 2007 : Insert list based on drop down choice
    By Ron1121 in forum Excel General
    Replies: 1
    Last Post: 01-11-2010, 07:58 PM
  5. Updating graphs based on choice in drop-down menu:
    By tim.maciejewski in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 03-02-2009, 06:09 PM

Tags for this Thread

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