+ Reply to Thread
Results 1 to 2 of 2

Searchable Drop-Down List Graph with No data forTimepoints

  1. #1
    Registered User
    Join Date
    06-01-2020
    Location
    Maine, USA
    MS-Off Ver
    365
    Posts
    3

    Searchable Drop-Down List Graph with No data forTimepoints

    Hi All,

    I've created a searchable drop-down list that populates a graph based on the assay selected. I'm trying to anticipate the event where no assays are done for an entire month or months. I'd like to compute "NA" for the time column if for any month(s) there is no data and still have the graph populate properly. I tried adding iterations of =if"&Metrics!G9,Table1[Date],"=””,NA() with no success. So say for the months of March and May there will be no data for those two months. I'd like to amend the formula so that an "NA" populates for the time column for those months so that the graph display correctly. Thanks again for all your help. I have attached the workbook for your review. Any help you guys could provide will be greatly appreciated.
    Attached Files Attached Files

  2. #2
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Searchable Drop-Down List Graph with No data forTimepoints

    Basically all you need to do is let AVERAGEIFS throw a DIV/0 error for the situation where there are no tests in the date range, hence 'value = 0' / zero entries;
    and then wrap the AVERAGEIFS with IFERROR("function", NA()) to swap out the division-by-zero error code for the Not Applicable Error code to feed your graph.

    Thus:
    Please Login or Register  to view this content.
    In H9 and pull down.

    Notice I also stuck the IF() test for the "Assay Type" inside the AVERAGEIFS instead of outside. I don't think this will have a meaningful impact on the function, but I think it makes it more human-redeable simply because it's shorter.

    If that delivers what you want for the AVERAGEIFS, then you can do the same thing for minimum-in-range and maximum-in-range with MINFIS and MAXIFS, fed the exact same arguments as AVERAGEIFS, but those will report zero as a result instead of an error code in the "no data" case. You would probably need to wrap another boolean for that case somehow if you want it to throw an error instead.
    (If you need more backwards compatibility, rather than the native MINIFS() function you could use the {MIN(IF)} array construction; ditto AVERAGEIFS() and the {AVERAGE(IF)} array).
    Last edited by ben_hensel; 06-01-2020 at 02:23 PM.
    Click the [* Add Reputation] Button to thank people for help!
    Post Attachment: Click [Go Advanced] under the reply box; then click [Manage Attachments] to launch the attachments dialogue.
    Mark Thread Solved: Go to the top of the first post; Select [Thread Tools] dropdown; Pick the [Mark thread as Solved] option.

+ 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. [SOLVED] Searchable drop down list
    By wongsiuon in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-02-2019, 09:35 PM
  2. Drop down menu to reference different sheets in searchable drop down list
    By MJAHNKE in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-05-2019, 01:00 PM
  3. Searchable Drop Down List
    By mhkeim in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-06-2018, 06:48 PM
  4. Searchable drop down list
    By sradjend in forum Excel General
    Replies: 17
    Last Post: 02-12-2018, 07:38 AM
  5. Searchable drop down list
    By AHUS in forum Excel General
    Replies: 4
    Last Post: 09-13-2017, 03:54 PM
  6. Searchable Drop down list
    By axangec in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 01-20-2016, 08:43 AM
  7. Searchable Drop down list
    By Jesscyca in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-21-2014, 11:03 AM

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