+ Reply to Thread
Results 1 to 5 of 5

Dynamic Named Range Picking up Cells with Zeros (0s)

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,012

    Re: Dynamic Named Range Picking up Cells with Zeros (0s)

    Ron Coderre: The formula supplied is now selecting the cells in reserve order instead of only selecting down based on values greater than zero.

    Thanks

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Dynamic Named Range Picking up Cells with Zeros (0s)

    With all the gyrations in your original formula, I wasn't sure what range you wanted to select.
    This formula will reference a range that begins at C4 and is the number of cells >0 high
    =OFFSET(Chartdata_linked!$C$4,,,COUNTIF(Chartdata_linked!$C$4:$C$613,">0"))
    In your example, that would be C4:C10

    Does that help?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,012

    Re: Dynamic Named Range Picking up Cells with Zeros (0s)

    Ron Coderre: Sorry for the confusion. In the original formula and sample workbook, when you enter 5 in C5, the original formula will select C9:C13 with C11:13 with zero values. Instead, would like the formula adjusted to only select C9:C10 since the cells are not zeros (or greater than zero).

    Thanks

+ 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. Dynamic / Named Print Range To Include Another Range of Cells
    By thekrakenwakes in forum Excel General
    Replies: 0
    Last Post: 07-25-2014, 07:52 AM
  2. Dynamic Named Range and Pivot Tables - Blank Cells
    By nathanB in forum Excel General
    Replies: 1
    Last Post: 11-29-2012, 09:11 AM
  3. Dynamic Named Range on Visible cells
    By jomili in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-07-2011, 02:42 PM
  4. picking cell from named range passed to vba
    By toddah in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-27-2011, 11:49 PM
  5. Dynamic Named Range with blank cells
    By tjtjjtjt in forum Excel General
    Replies: 3
    Last Post: 10-05-2005, 04: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