+ Reply to Thread
Results 1 to 7 of 7

Count cells that contain formulas

  1. #1
    Registered User
    Join Date
    01-14-2013
    Location
    Greenville, SC
    MS-Off Ver
    Excel 2016
    Posts
    25

    Count cells that contain formulas

    What is the formula to count a range of cells in a column that also contains formulas? Some cells will contain values that I want to count, but those only; not all cells.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Count cells that contain formulas

    Hi robinc,

    If you had a range in Column B from row 1 to 30 and wanted to count how many were formulas, try this:

    Please Login or Register  to view this content.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    01-14-2013
    Location
    Greenville, SC
    MS-Off Ver
    Excel 2016
    Posts
    25

    Re: Count cells that contain formulas

    That definitely worked, but I only want the sum of the results of the formula. If the formula returns a 0 (zero) I do not want to count it. Only the sum of the results if greater than zero.

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Count cells that contain formulas

    Hi robinc,

    This will do what you want.

    Please Login or Register  to view this content.

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Count cells that contain formulas

    I only want the sum of the results of the formula. If the formula returns a 0 (zero) I do not want to count it.
    Cell values that are zero won't affect the sum, right?
    Entia non sunt multiplicanda sine necessitate

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,740

    Re: Count cells that contain formulas

    Thread moved to correct forum section.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  7. #7
    Registered User
    Join Date
    01-14-2013
    Location
    Greenville, SC
    MS-Off Ver
    Excel 2016
    Posts
    25

    Re: Count cells that contain formulas

    This worked perfectly. 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. [SOLVED] How Do I Count Nonblank Cells if Blank Cells Have Formulas?
    By Ocean Zhang in forum Excel General
    Replies: 5
    Last Post: 03-28-2017, 10:09 PM
  2. [SOLVED] Formula to count cells that are not empty excluding cells with formulas
    By Imbizile in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-20-2015, 07:08 AM
  3. Formulas don't count merged cells
    By PinkMafia14 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-15-2015, 04:58 AM
  4. Replies: 5
    Last Post: 01-31-2013, 12:55 PM
  5. Need to only count activated cells in formulas
    By gherzberg in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-02-2012, 10:31 AM
  6. Excel 2007 : Pivot count refers to cells with formulas
    By eldwardo in forum Excel General
    Replies: 5
    Last Post: 05-22-2009, 11:15 AM
  7. Count cells which have ONLY FORMULAS
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-30-2009, 07:00 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