+ Reply to Thread
Results 1 to 6 of 6

highlight a category based on criteria

  1. #1
    Registered User
    Join Date
    04-11-2013
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    16

    highlight a category based on criteria

    Hi all,

    i have been trying for days to filter a table based on criteria either by formula, conditional formatting or both.
    please find attached a spreadsheet including the data and what i would like the result to be.
    1. if a cell in column C has a negative number find the corresponding category in column B - there may be multiple rows
    2. highlight all of all of the cells in the category (column B) if the corresponding cell in column C is less than or greater to 0 (do not include cells that are blank or contain 0)



    many thanks,
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,193

    Re: highlight a category based on criteria

    For 2.

    CF

    =AND($C5<>"",$C5<>0)

    For 1. Do you want a list of all categories where c is negative?

    Column V does not meet that criteria (based om comment in V27

  3. #3
    Registered User
    Join Date
    04-11-2013
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: highlight a category based on criteria

    Hi John,

    columns B and C are the only columns where i need a solution - sorry but column V is only what i wanted the formula to achieve.

    i'm struggling to explain what i'm after ....
    if column C = a negative number - in this case A1, B1 etc
    now highlight all A1's in column B if the number is not equal to 0 or blank

    the result i would like is column M - highlight column M if N contains numbers not equal to 0 or blank .... but only if there is a negative number. (D1 and E1 not highlight because they don't contain a negative)

    many thanks

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,193

    Re: highlight a category based on criteria

    Try


    =AND($C5<>"",$C5<>0,COUNTIFS($C$5:$C$1000,"<0",$B$5:$B$1000,$B5))

  5. #5
    Registered User
    Join Date
    04-11-2013
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: highlight a category based on criteria

    Hi John,

    Apologies for the delayed reply but that formula worked perfectly - thank you very much!!
    Problem solved

    Many thanks

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,193

    Re: highlight a category based on criteria

    No problem.



    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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] Macro to highlight rows based on numerous criteria
    By the machine in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 03-16-2018, 03:32 PM
  2. [SOLVED] Recommend Chart will not highlight this category
    By Look, More, What in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 01-01-2014, 12:03 PM
  3. highlight cell based on criteria
    By jetset1 in forum Excel Programming / VBA / Macros
    Replies: 31
    Last Post: 10-11-2013, 10:59 AM
  4. [SOLVED] Highlight dates in a calendar based on event category
    By lopez567 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-02-2012, 08:14 AM
  5. Identify/highlight maximum value based on multiple criteria
    By JennB in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-06-2009, 06:28 PM
  6. Highlight based on two criteria
    By daland1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-20-2008, 05:09 AM
  7. Highlight duplicate records based on multiple criteria
    By Beckiwi in forum Excel General
    Replies: 2
    Last Post: 06-11-2008, 03:53 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