Results 1 to 4 of 4

Dynamic Named Range COUNT ignore formulas

Threaded View

  1. #1
    Registered User
    Join Date
    10-12-2012
    Location
    seatle
    MS-Off Ver
    Excel 2010
    Posts
    3

    Dynamic Named Range COUNT ignore formulas

    I looked around for a solution including: Dynamic range - ignoring formulas
    I have array formulas (some with results, some not) that are all being referenced by the Named Range when I use either,
    =OFFSET(Products!$G$1,1,0,(65536-COUNTBLANK(Products!$G:$G)-1),1)
     =OFFSET(Products!$G$1,1,0,COUNTA(Products!$G:$G)-1,1)
    Pasting values to a new column doesn't seem make a difference, the entire column is identified (this is strange to my thinking).
    1. How can I get this to work with formulas when defining the Named Range Reference, ignoring formulas with no result?
    -Or-
    2. How can I implement the UDF suggestion below from "Dynamic range -ignoring formulas" thread in conjunction with the Named Range formula?

    Function CountValues(ByRef Rng As Range)
    
      Dim Cell As Range
      Dim N As Long
      
          For Each Cell In Rng
            If Not Cell.HasFormula And Cell.Value <> "" Then N = N + 1
          Next Cell
          
          CountValues = N
          
    End Function
    It's good to know when to stop struggling and go with a work around, but success will feel sweeter (even if it's 100% y'all)
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Dynamic named range that ignores formulas that return blank
    By Nils88 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-27-2013, 05:02 AM
  2. Named Dynamic Range to count across columns not rows
    By talexander in forum Excel General
    Replies: 4
    Last Post: 01-04-2011, 11:07 AM
  3. Count of Dynamic Named Range with more criteria
    By Wermeael in forum Excel General
    Replies: 3
    Last Post: 08-29-2010, 02:42 PM
  4. Check if named range exists and ignore if it doesn't
    By lawtonl in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-14-2009, 10:05 AM
  5. Named ranges-Should I use a dynamic named range
    By foseco in forum Excel General
    Replies: 4
    Last Post: 06-11-2009, 03:56 PM

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