+ Reply to Thread
Results 1 to 6 of 6

Count function to exclude a circular reference

  1. #1
    Forum Contributor
    Join Date
    03-05-2013
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    301

    Count function to exclude a circular reference

    Hi all,

    I need a function to count the entire column, but need to exclude several rows.

    The column will be dynamic, i.e. any number of rows may be added.
    The first three rows contain headings and other data. the 4th row needs to have a function. For example: =CountA(B:B)

    This function however produces a circular warning, understandably.

    Is there a function that will count the entire column, but omit the cells. I know I could count 10000000, but that seems clumsy. Is there a better way?

    Cheers

  2. #2
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Count function to exclude a circular reference

    I'd say no, but maybe somebody will prove me wrong. You can't define a matrix from which to exclude cell 4, without first INCLUDING cell 4.

  3. #3
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: Count function to exclude a circular reference

    HI,

    if your looking for one column then go for Name manager select the range and give it name and use the same in CountA function then it will not look odd and also you can make any change in the range with out disturbing the formula cell

    Punnam

  4. #4
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Count function to exclude a circular reference

    Let me know about, in omit cell any particular unique word mentioned, in this case you can use below formula. Suppose word is "Apple"
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If your data numric & you count below than 22
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If you count only visible row then use formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Its depend on your data.


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  5. #5
    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,938

    Re: Count function to exclude a circular reference

    Quote Originally Posted by Journeyman3000 View Post
    Hi all,...
    Is there a function that will count the entire column, but omit the cells. I know I could count 10000000, but that seems clumsy. Is there a better way?...
    Short answer - no, but whats wrong with using =COUNT(A5:A100000) ?
    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

  6. #6
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Count function to exclude a circular reference

    Quote Originally Posted by Punnam View Post
    HI,

    if your looking for one column then go for Name manager select the range and give it name and use the same in CountA function then it will not look odd and also you can make any change in the range with out disturbing the formula cell

    Punnam
    Hi Punnam, I thought of this, too, but it didn't work. You can't use the named range in a cell that's PART of that range without running into the same Circular Reference issue.

+ 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. Help figuring out circular reference in function that works as sub?
    By hadamhiram in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-24-2015, 11:03 AM
  2. Circular reference and what if function showing 0 when I select cell
    By collierm48 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-08-2014, 11:28 PM
  3. IF function Circular reference
    By anstar in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 09-05-2014, 03:23 PM
  4. Problem with circular reference in a custom function
    By mongoose36 in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 01-16-2014, 07:18 PM
  5. [SOLVED] IF/MIN Function To Get Around Circular Reference
    By rylock in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-23-2013, 07:09 PM
  6. [SOLVED] Excel 2007 : Incorrect Circular Reference with TODAY() function
    By qaliq in forum Excel General
    Replies: 5
    Last Post: 03-13-2012, 06:48 AM
  7. IF function and circular reference
    By Abdrahim in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-18-2007, 03:02 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