+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    03-11-2010
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2003
    Posts
    14

    SUMIFS with criteria/sum ranges in a cell drop-down

    I've been scouring every Excel forum I can find for what I believe is a relatively simple problem, but still can't find the solution...

    Here's the outline:

    I want to use two dropdown cells as references for the criteria in the SUMIFS function. For the criteria, this is simple since it is just numeric. But for the criteria range and sum range, I am trying to reference a cell containing a data-validated drop-down list of the named ranges in the sheet. So far, I have gotten to this functioning formula:

    =SUMIFS(INDEX(Salad,,2),INDEX(Salad,,1),">="&B4)

    where "Salad" is one named range. What I want to be able to do is refer to a cell that contains a drop-down list with all the other named ranges (Salad1, Salad2, Salad3) in it but Excel keeps giving me a #REF! error.

    Thanks!
    Attached Files Attached Files
    Last edited by CST; 03-11-2010 at 12:07 PM. Reason: Added dummy example file

  2. #2
    Forum Moderator NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003, 2007, 2010
    Posts
    31,163

    Re: SUMIFS with criteria/sum ranges in a cell drop-down

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  3. #3
    Registered User
    Join Date
    03-11-2010
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: SUMIFS with criteria/sum ranges in a cell drop-down

    NBVC,

    Uploaded an example dummy file in original post. Hopefully, it explains the problem more clearly.

  4. #4
    Forum Moderator NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003, 2007, 2010
    Posts
    31,163

    Re: SUMIFS with criteria/sum ranges in a cell drop-down

    Try:

    =SUMIFS(INDEX(INDIRECT($A$5),,COLUMNS($A$1:B$1)),INDEX(INDIRECT($A$5),,1),">="&$B$5)

    copied across the 4 columns...

    Note: To avoid blanks in the drop down, create a separate list somewhere in consecutive cells and link Data Validation to that list.
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  5. #5
    Registered User
    Join Date
    03-11-2010
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: SUMIFS with criteria/sum ranges in a cell drop-down

    Awesome! Thanks so much.

    Now I need to figure out why that works.

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.2.0