+ Reply to Thread
Results 1 to 3 of 3

Thread: Counting Formula in the COUNTA formula

  1. #1
    Registered User
    Join Date
    01-26-2012
    Location
    Gloucestershire, England
    MS-Off Ver
    Excel 2010
    Posts
    5

    Counting Formula in the COUNTA formula

    Hi,

    I've got a column where each cell is the formula:

    =IF('C:\[In_Process.txt]In_Process'!A4=0,"",'C:\[In_Process.txt]In_Process'!A4)

    So the cell is either populated by the data in the text file or is blank. I want to count all of the cells that have data in, but because COUNTA counts a cell with a formula in as not empty it counts them all.

    Is it possible to count only the cells which have brought data through? Should I be using something other than "" in my IF formula maybe?

    Thanks in advance!

  2. #2
    Valued Forum Contributor
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    1,957

    Re: Counting Formula in the COUNTA formula

    You could use a COUNTIF to get the number of blank cells.

    So if your range is A1:A10 then:

    =COUNTIF(A1:A10,"")

    Returns the number of blanks and:

    =COUNTA(A1:A10)-COUNTIF(A1:A10,"")

    Returns the number of used cells.

  3. #3
    Registered User
    Join Date
    01-26-2012
    Location
    Gloucestershire, England
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Counting Formula in the COUNTA formula

    That works perfectly! Thank you!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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.2.0