+ Reply to Thread
Results 1 to 7 of 7

count not including formulas

  1. #1
    Registered User
    Join Date
    10-16-2008
    Location
    iowa
    MS-Off Ver
    Microsoft 365 Apps for enterprise
    Posts
    63

    count not including formulas

    I have a list of unique items form a much larger list, using the typical formula

    =INDEX(Data Dept,MATCH(0,INDEX(COUNTIF($B$5:B6,Data Dept),0,0),0))

    But to avoid a string of trailing #NA's I enclose that in an iferror() to show blank (looks empty, but of course is not) results:

    =IFERROR(...,"")

    I want to put a count of the unique items at the top of the list, but all combinations of count, countif that I try just give the entire list length including these blank cells - not the actual unique items found.

  2. #2
    Forum Contributor
    Join Date
    06-28-2016
    Location
    Pennsylvania, USA
    MS-Off Ver
    2013
    Posts
    308

    Re: count not including formulas

    there's two ways that I can think of to go about this (there's probably other solutions too)

    First, you can simply copy your column (as text) into another column, then remove duplicates. Then count that column.

    The more complicated and efficient way, if you plan on doing this a lot, is to utilize named ranges.

    You can create a unique named range by going into your name manager and using a combination of offset and counta.

    View an example here:

    http://www.excelforum.com/showthread...=1#post4467192

  3. #3
    Forum Expert
    Join Date
    08-02-2013
    Location
    Québec
    MS-Off Ver
    Excel 2003, 2007, 2013
    Posts
    1,412

    Re: count not including formulas

    Hi,
    If my understand is correct, try this ARRAY formula :

    Please Login or Register  to view this content.
    where AXX:AYY is the range where you have your first formula with #NA results.

    Array formula are validated using CTRL+SHIFT+ENTER.
    GC Excel

    If this post helps, then click the star icon (*) in the bottom left-hand corner of my post to Add reputation.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: count not including formulas

    Assuming the data is text...

    =COUNTIF(Range,"?*")
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Registered User
    Join Date
    10-16-2008
    Location
    iowa
    MS-Off Ver
    Microsoft 365 Apps for enterprise
    Posts
    63

    Re: count not including formulas

    GC: But I don't want the #NAs to be there, looks messy.
    Last edited by guthrie; 10-09-2016 at 05:47 PM.

  6. #6
    Registered User
    Join Date
    10-16-2008
    Location
    iowa
    MS-Off Ver
    Microsoft 365 Apps for enterprise
    Posts
    63

    Re: count not including formulas

    Tony: Perfect - thanks - this is what I had done before but couldn't remember!!

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: count not including formulas

    You're welcome. Thanks for the feedback!

+ 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. Need to automatically insert new row including formulas
    By fizzwolf in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-11-2016, 06:13 AM
  2. Insert n-1 rows including formulas
    By Businessrocker in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-21-2014, 09:27 AM
  3. [SOLVED] How to count including *2 or *3 or *4 or *5 or *6 or *7
    By summer2010 in forum Excel General
    Replies: 9
    Last Post: 09-24-2014, 04:06 AM
  4. VBA to copy / paste (including formulas) to next available row
    By nellyc in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-20-2014, 05:07 AM
  5. Including averages logic into IF formulas
    By ExcelRookieATX in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-21-2014, 06:26 PM
  6. Drop down lists: including formulas
    By keepyournose14 in forum Excel General
    Replies: 5
    Last Post: 11-28-2008, 09:55 AM
  7. Can I save a spreadsheet including formulas
    By Sandraoc1 in forum Excel General
    Replies: 4
    Last Post: 07-10-2007, 08:57 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