+ Reply to Thread
Results 1 to 3 of 3

Count non-blank cells in a row, while conditions in another row are met

  1. #1
    Registered User
    Join Date
    08-20-2013
    Location
    Trnava, Slovakia
    MS-Off Ver
    Excel 2007
    Posts
    4

    Count non-blank cells in a row, while conditions in another row are met

    example.xlsx

    Good morning,

    I need function to count non-blank cells in a row, while conditions in another row are met.

    Please refer to the attachment for the example. What I need is to count non-blank cells in row F, when cells in row B are equal to "Lobo,Roshan". Cell "Lobo,Roshan" is 27 times in B row, when I filter "Lobo,Roshan" I have 23 non-blank calls in row F. So result which I want to get is "23".

    Thanks in advance for your help,
    Yury

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,915

    Re: Count non-blank cells in a row, while conditions in another row are met

    =SUMPRODUCT(--(B:B=N3),--(LEN(F:F)>0))
    Try this
    it is better to specify ranges instead of selecting entire Column B and Column F
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Count non-blank cells in a row, while conditions in another row are met

    you can also use this formula

    =COUNTIFS(B:B,N3)-COUNTIFS(B:B,N3,F:F,"")

+ 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: 2
    Last Post: 11-22-2013, 01:07 PM
  2. [SOLVED] Want the cells with the formulas to appear blank until conditions are added
    By Kattracks in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-01-2013, 12:07 PM
  3. [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
  4. Replies: 3
    Last Post: 07-03-2009, 03:13 AM
  5. 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