+ Reply to Thread
Results 1 to 4 of 4

Count (But not formulas)

  1. #1
    Forum Contributor
    Join Date
    08-24-2006
    Location
    Sevenoaks, Kent
    MS-Off Ver
    Office 365 ProPlus
    Posts
    459

    Count (But not formulas)

    I have a spreadsheet with lots of data running off formulas, all i want is a count formula that will count the enrys shown not the formulas, there are numbers and text on this sheet so it dosent matter what column it reads from, all i want it to do is give me the answer of 2 for example if there are 200 cells with 2 pieces of data shown.

    Thanks in advance

    DJ

  2. #2
    Forum Contributor
    Join Date
    12-02-2004
    Location
    London
    Posts
    255
    Not the perfect solution, however, in a spare cell put the formula:-

    =COUNTIF(Range,">0"), where range is the cells with numbers/formulas.

    Highlight your range and select Edit | Replace - In the Find what, enter an = sign, in the Replace with, enter a 0, then hit Replace All. All formulas start with an = sign, when these are replaced with a 0 the cells become text, if a cell has an = sign followed by a number, the cell will just remain the same (it won't put a leading zero in and the cells without = signs will stay as they are.

    Check the cell with your Countif formula in, to give you the number of cells with values. When your finished, select the undo button to reverse your last procedure and put all your formulas back.

    G

  3. #3
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561
    =SUMPRODUCT(--(range<>""))

  4. #4
    Valued Forum Contributor
    Join Date
    08-26-2008
    Location
    singapore
    Posts
    626
    Select the range
    Ctrl + F
    key in "="
    Find all
    Then you know how many formulas there are
    and you can calculate the cells without formula
    I need your support to add reputations if my solution works.


+ 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. Count rows that contain values, not formulas!
    By magnuc in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 01-24-2011, 05:46 PM
  2. Formulas to count exact dates
    By bdmaguire in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-29-2008, 08:54 AM
  3. COUNT func (Ignore formulas)
    By scaffdog845 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-05-2008, 09:54 AM
  4. How to use the count function?
    By atech in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-21-2007, 01:01 AM
  5. COUNT IF formulas
    By john_learner in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-16-2006, 04:27 AM

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