+ Reply to Thread
Results 1 to 4 of 4

Dynamic Range

  1. #1
    Registered User
    Join Date
    01-02-2014
    Location
    Los Angeles
    MS-Off Ver
    Excel 2013
    Posts
    14

    Dynamic Range

    Hi guys,

    I am working with a dynamic range. I am hoping you can suggest a solution. Here is the problem (see the attached file). I have two sheets. Summary by project is a table that show financial performance by project. However, there are several hundred possible projects and only a few will be relevant to a particular group and every period, there may or may not be expenses associated with additional projects are part of the list. So right now, the rightmost column in Summary by Project simply uses the formula =IFERROR(INDEX(MyRangeOne,ROW()-6),"") to refer to all the possible projects in worksheet Projects. Obviously if I have lines for all 300 projects, the report would look really ugly and I would have to hide the empty lines. However if a project that previously did not have an expense now has an expense, it would be hidden. So is there a way to automatically hide projects that don't have any data in columns D-R or expend only those lines that have data in columns D-R? The actual amounts would simply be a sumifs function based on monthly updated worksheet that the file will include.

    Thanks, your help is much appreciated.
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Dynamic Range

    1 way to do this would be to use a helper column and then apply filters...Home tab/Editing/Sort and Filter, Filter

    1st put this in R7, copied down...
    =COUNTIFS(C8:Q8,"<>0",C8:Q8,"<>")
    Then apply filters and filter out all 0's
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    01-02-2014
    Location
    Los Angeles
    MS-Off Ver
    Excel 2013
    Posts
    14

    Re: Dynamic Range

    Thanks much, it works. How come I have to use two criteria in the formula?

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Dynamic Range

    If you leave out the last criteria, it counts empty cells

+ 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. Match ComboBox with dynamic range, then add Textbox1 to dynamic range
    By Lasse Moe in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-07-2014, 01:26 AM
  2. Dynamic Range Column Chart w/ Dynamic Avg Line (Excel 2007)
    By BrokenBiker in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 10-04-2012, 11:40 AM
  3. Fill Dynamic Range From Dynamic Source Range
    By goss in forum Excel General
    Replies: 2
    Last Post: 03-06-2012, 12:05 PM
  4. Replies: 2
    Last Post: 02-02-2006, 04:10 PM
  5. select dynamic range with dynamic start point
    By Juli in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-30-2005, 08:05 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