+ Reply to Thread
Results 1 to 7 of 7

Sum If / Count If with Blank Cells

  1. #1
    Registered User
    Join Date
    11-11-2019
    Location
    Scottsdale, AZ
    MS-Off Ver
    Office 365
    Posts
    19

    Sum If / Count If with Blank Cells

    When I copy the trades into excel, every cell has a blank space before the data. I created column P and R to remove the space before
    the profit and before the date. When I copy the formulas down for thousands of cells, it shows the #VALUE error. If I do the
    IFERROR formula, my formulas count the "empty" cells as trades or wins. How do I get my formulas in cells U to work
    without having errors in P and R? I put the correct answers in column W.
    Attached Files Attached Files

  2. #2
    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,460

    Re: Sum If / Count If with Blank Cells

    Maybe this?

    =IF(G34="","",SUBSTITUTE(G34,CHAR(160),"")+0)
    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.

  3. #3
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Sum If / Count If with Blank Cells

    Your dates in column R still contain the time. Your date in R34 is 42788,38194 (in number format) where it should be 42788
    You should extract the date only using the INT function
    As my regional settings are not the same I can't post an example

  4. #4
    Registered User
    Join Date
    11-11-2019
    Location
    Scottsdale, AZ
    MS-Off Ver
    Office 365
    Posts
    19

    Re: Sum If / Count If with Blank Cells

    It appears to work with the top formulas because the date is a bonus. The cells below, it still doesn't work. It still counts all of the cells as trades, even if they are blank and it counts them as wins.

  5. #5
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Sum If / Count If with Blank Cells

    If you remove time as I suggested, it works perfectly

  6. #6
    Registered User
    Join Date
    11-11-2019
    Location
    Scottsdale, AZ
    MS-Off Ver
    Office 365
    Posts
    19

    Re: Sum If / Count If with Blank Cells

    The top formulas work with the date. It is the bottom formulas that are not working and counting empty sales as trades, and wins.

  7. #7
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Sum If / Count If with Blank Cells

    fiddly to test in the UK - but, apply either AliGW suggestion or IFERROR to P/R and, modify your FREQUENCY arrays to leverage N (so as to discount the precedent Null strings), e.g.:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    there are alternate approaches you could take, to limit how much you're looking at relevant to available values, but in terms of immediate fix - try above.

+ 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. Replies: 9
    Last Post: 10-01-2016, 04:32 PM
  2. Count blank cells in a range and contiguous blank cells also as single cells! Tricky One!
    By SebastianColombia in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-31-2015, 02:32 PM
  3. Count number of cells in column per month, ignore blank cells
    By lamdl in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-13-2014, 08:50 PM
  4. Replies: 2
    Last Post: 11-22-2013, 01:07 PM
  5. [SOLVED] Count cells starting from blank and reset after another blank
    By slasherdan in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 09-07-2013, 03:46 AM
  6. Replies: 2
    Last Post: 07-25-2013, 01:01 PM
  7. Count blank cells within a range not including fully blank rows
    By twofootgiant in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 07-16-2008, 09:43 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