+ Reply to Thread
Results 1 to 2 of 2

Error in condition formating code

  1. #1
    Registered User
    Join Date
    04-27-2016
    Location
    india
    MS-Off Ver
    2007
    Posts
    87

    Error in condition formating code

    see the below image
    Capture.JPG
    A5 is link with A14
    A6 is link with A15
    A7 is link with A16
    A8 is link with A17
    A9 is link with A18
    A10 is link with A19

    MY FORUMLA IS IN B1 i.e =COUNTIFS(B5:B10,"BAL",A5:A10,"<>")

    PROBLM IS IF I DELETE A19 AND STILL IN B1 IT COUNT AS 1 IT SHOULD BE 0
    SEE BLEOW IMAGE
    Capture-1.JPG
    PLEASE GIVE SOLUTION
    FILE ATTACHED HERWITH
    Attached Files Attached Files

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

    Re: Error in condition formating code

    =COUNTIFS(B5:B10,"BAL",A5:A10,"<>")
    The above formula will count when there is "BAL" in the range B5:B10 and corresponding row is not blank in Range A5:A10
    So in Range A5:A10 have "0" means it is not blank, so you got the value 1
    try
    =COUNTIFS(B5:B10,"BAL",A5:A10,"<>0")
    Note: If you really have 0 value in Column A then also it will not count
    Samba

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

+ 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] conditional formating error in code
    By jj4jj in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-24-2016, 07:01 PM
  2. Condition formating
    By virencm in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-30-2014, 08:42 PM
  3. Condition formating a cell in a worksheet based off formating of another cell
    By bdberger1985 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-07-2013, 05:52 PM
  4. [SOLVED] Error 13 - Type Mismatch for my macro code for deleting rows based on condition.
    By Whitenoise1 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-19-2012, 07:56 PM
  5. Condition Formating
    By Hlowmaster in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-12-2010, 04:31 PM
  6. [SOLVED] condition formating I think
    By Dreamstar_1961 in forum Excel General
    Replies: 3
    Last Post: 05-05-2006, 12:35 PM
  7. [SOLVED] condition formating
    By chiuinggum in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-01-2006, 08:00 PM

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