+ Reply to Thread
Results 1 to 2 of 2

Excel Counting a blank cell as a value

  1. #1
    Forum Contributor
    Join Date
    11-26-2008
    Location
    UK
    MS-Off Ver
    Using Excel 2019
    Posts
    317

    Excel Counting a blank cell as a value

    Im sure this is very obvious but it's confusing me being a Excel novice....I have two columns (Q & R) in which 'W', 'L' or a blank space appears according to the following two formulas :

    =IF(G9>L9,"W"," ")

    =IF(L9>G9,"L"," ")
    Additionally I have a formula elsewhere in the sheet that counts whether there is anything in the columns where 'W' and 'L' appear :

    =COUNTA(Q9,AH9,AJ9)

    =COUNTA(R9,AI9,AK9)
    My problem is that the COUNTA function counts the blank space as a value. How can I make it stop!?

    Thanks

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Excel Counting a blank cell as a value

    " " is not a blank/null rather it is a space... if you want a Null use ""

    However COUNTA will still count Nulls as valid.

    Given your range is non contiguous things are a little more convoluted though you could just add the three together:

    =(Q9<>"")+(AH9<>"")+(AJ9<>"")

    (with contiguous ranges you can use COUNTIF(range,"*?") ... or even COUNTA less COUNTBLANK given the latter treats Nulls as blanks)

+ 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.6.0 RC 1