+ Reply to Thread
Results 1 to 8 of 8

Ignore blank cells in formula counting number of different cells.

  1. #1
    Registered User
    Join Date
    10-23-2013
    Location
    Worcester
    MS-Off Ver
    Excel 2010
    Posts
    16

    Ignore blank cells in formula counting number of different cells.

    Hi,

    I have a formula for counting the number of bins in a column of cells where another criteria applies. There may not always be a bin number in that column, unfortunately this results in an #N/A error.

    Can anyone help with a revision to this formula to ignore blank cells?

    Example sheet attached.

    Thanks in advanceBinCount.xlsx

  2. #2
    Forum Contributor
    Join Date
    01-28-2014
    Location
    Turkey
    MS-Off Ver
    Excel 2013
    Posts
    159

    Re: Ignore blank cells in formula counting number of different cells.

    Please Login or Register  to view this content.
    ctrl+shift+enter

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Ignore blank cells in formula counting number of different cells.

    If you are counting the number of non-zero cells in column B that meet the criteria in D, use this: =COUNTIFS(B5:B11,">0",E5:E11,D1) and copy paste into second grouping.

    If not, please explain why you think the result to the first one is 4.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    Registered User
    Join Date
    10-23-2013
    Location
    Worcester
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Ignore blank cells in formula counting number of different cells.

    Hi Ali, Sorry your formula doesnt appear to work.

    Glen. I am only counting cells which have a value and not blank. In the first example it returns 4 because in column 'Del' there are 4 #2 each having a corresponding number in 'Bin' column which is not repeated where they also have #2 in Del column.

    Hope this makes sense.

  5. #5
    Forum Contributor
    Join Date
    01-28-2014
    Location
    Turkey
    MS-Off Ver
    Excel 2013
    Posts
    159

    Re: Ignore blank cells in formula counting number of different cells.

    Check file
    Attached Files Attached Files

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Ignore blank cells in formula counting number of different cells.

    It does - so the formula above will work fine. see attached.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    10-23-2013
    Location
    Worcester
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Ignore blank cells in formula counting number of different cells.

    Sorry, I don't think you are getting what I am trying to achieve. I'll try and explain again.

    Bin column: This is a bif reference number and can appear more than once.
    Del Column: This is a delivery reference and Bins can be assigned to that delivery.
    Not every line will have a Bin number.

    Where the Del number is equal to that specified in the Load Cell, I then want to count the number of bins in the Bin column that relate to that Del number - BUT where a bin number is repeated 2, 3 or more times I only want to count that bin once - That part all works with my origional formula. What my problem is; is if the Bin column has a blank cell (as it's an item that doesnt have a Bin reference) I get an #N/A error returnded.

    I was therefore looking for some assistance to modify my formula to ignore the blank cells and still count the bins as the above/origional formula.

    BinCount2.xlsx

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Ignore blank cells in formula counting number of different cells.

    OK. In that case, why doesn't Ali's formula do what you want? (Did you array enter it??)

+ 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] Formula to calculate number of days & ignore blank cells
    By Mifty in forum Excel General
    Replies: 11
    Last Post: 06-06-2021, 01:42 AM
  2. Ignore blank cells using formula
    By tcubed13t in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-30-2014, 09:12 PM
  3. [SOLVED] Return non-blank cells from range AND ignore cells with only formula w/o results
    By grafitti in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-06-2014, 08:15 AM
  4. 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
  5. find number of data in a range IGNORE FORMULAS, BLANK cells
    By ccsmith in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-07-2013, 11:57 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