+ Reply to Thread
Results 1 to 3 of 3

Create a Dropdown list to adjust a cell's formula data range

  1. #1
    Registered User
    Join Date
    12-23-2010
    Location
    Alamo, CA
    MS-Off Ver
    Office 365 V. 2308
    Posts
    22

    Create a Dropdown list to adjust a cell's formula data range

    I'm using the AverageIF formula to look at a range of cells and return an average of those cells in the range that meet a specific criteria.

    Is it feasible to extend this functionality by linking the cell/formula to a dropdown menu that could adjust the range in the formula based on the menu selection?

    I have attached a spreadsheet as an example.

    Ideally, a selection of Week 1, Week 2, or Week 3 would alter the ranges that the formulas look at in the highlighted cells.

    Thanks,

    Drew
    Attached Files Attached Files

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Create a Dropdown list to adjust a cell's formula data range

    Try AverageIfs

    =AVERAGEIFS($D$7:$D$54,$A$7:$A$54,$B$3,$C$7:$C$54,"Shift 1")

    Change Shift accordingly or reference it to a separate cell
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Registered User
    Join Date
    12-23-2010
    Location
    Alamo, CA
    MS-Off Ver
    Office 365 V. 2308
    Posts
    22

    Smile Re: Create a Dropdown list to adjust a cell's formula data range

    Thanks Ace_XL!

    Works like a charm.

    Attached is the completed worksheet.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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