+ Reply to Thread
Results 1 to 8 of 8

Conditional Formatting/COUNTIF help with multiple criteria

  1. #1
    Registered User
    Join Date
    12-28-2018
    Location
    Sioux Falls, SD, USA
    MS-Off Ver
    Office 365 Professional
    Posts
    3

    Conditional Formatting/COUNTIF help with multiple criteria

    Let me start this off by saying I am not a professional, and am so uneducated that I don't even know that I have the right search terms (because I couldn't find an answer, I did try) or the best formula for this solution.

    Okay, so. What I have is a multiple page spreadsheet; page one is "Active" (all clients; unique ID number, first and last names, and a column for each type of report), page 2 is "Pending," (clients ID#, name, and whichever specific provider a request has been sent out, and the date out) and page 3 is "Received" (all of the received reports from page 2, with added received and effective dates).

    I have a number of conditional formatting rules in place, including one to make sure that reports are not duplicated using a helper column and COUNTIF on pages 2 and 3, and another COUNTIF to highlight the first names of clients on page 1 that have an entry on page 2 (using the unique ID# but highlighting the name cell).

    What I'm trying to do - using similar logic to the second rule mentioned above - is create a rule where I can make the second name be highlighted on page 1 if there is an entry on page 3 AFTER a certain date, in a cell that I can change as I update the Active page by adding the information in the Received page.

    I'm close, I think! I tried some other functions but ended up using a helper column (might as well) managed to figure out
    Please Login or Register  to view this content.
    Where P8 is the last updated date, L is my helper column (ID and date).... but I can only make it EQUAL to P8, not after. That works great, and I guess I could do it one day at a time, but that isn't optimal.

    I know I am close, but I just can't figure out what I can do. I tried adding in a greater than sign but it kept giving me errors and damned it, I am stymied, and I JUST KNOW there is a solution somehow.
    Last edited by kamilynn; 12-28-2018 at 04:22 PM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Conditional Formatting/COUNTIF help with multiple criteria

    Hi and welcome to the forum. Please upload a workbook or a representative cut down copy, anonymised if necessary. It is always easier to advise if we can see your request in its context.

    Show a before and after situation with manually calculated results, explaining which information is data and which is results, and if it's not blindingly obvious how you have arrived at your results some explanatory notes as well.

    You may need to include an INDIRECT() function somewhere but we'll know when we see the file.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    12-28-2018
    Location
    Sioux Falls, SD, USA
    MS-Off Ver
    Office 365 Professional
    Posts
    3

    Re: Conditional Formatting/COUNTIF help with multiple criteria

    Okay, I think I stripped out all the unnecessary clutter and have the referenced formatting still in place. Please let me know if there is anything more I can explain or add!! Thank you!


    EDITED: Ugh, I got so consumed with fixing the formulas i forgot to do the second part. Basically, I want to have it work so that the rule that highlights the top last name here

    ex1.png

    Will highlight BOTH last names, as it is referencing the 12/20 cell, and i want to have it work for all AFTER (and/or including is fine) that date, instead of just the single date.

    ex2.png

    Thank you!
    Attached Files Attached Files
    Last edited by kamilynn; 12-28-2018 at 03:17 PM.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Conditional Formatting/COUNTIF help with multiple criteria

    Hi, welcome to the forum

    1st, any time you combine (not add/sum) 2 cells, they become text, and you cannot test for 1 text being < or > another text.
    2nd, with CF, it only needs a TRUE(1) or FALSE (0) answer to trigger it. So instead of this (which isnt wrong)...
    =COUNTIF(Pending!$B$2:$B$3,$C2)>0
    you could just use...
    =COUNTIF(Pending!$B$2:$B$3,$C2)
    3rd, try this...
    =COUNTIFS(Received!$B$2:$B$3,$C2,Received!$I$2:$I$3,"="&$P$8)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Registered User
    Join Date
    12-28-2018
    Location
    Sioux Falls, SD, USA
    MS-Off Ver
    Office 365 Professional
    Posts
    3

    Re: Conditional Formatting/COUNTIF help with multiple criteria

    YOU ARE AN ABSOLUTE TREASURE

    If I am understanding this correctly, I can remove that second helper column altogether since I'm unable to use it for that function, anyway. That is PERFECT

    Ugh I'm so pleased. I actually had tried different ways of COUNTIFS initially, but really, I am so desperately untrained, I didn't have a clue of the correct syntax.

    I just KNEW there had to be a way to do it, thank you SO MUCH! This will make it a ton easier - having >450 kiddos and >1000 records in the Received table made for so much scrolling, even with sorting and filtering, but it wasn't reasonable to sort the data into table by months or cases. Looking into how to apply conditional formatting only to Visible on a filtered table wasn't working out for me, as not only was it beyond my skill, but I work with a government entity and they tend to disable things like VBA entirely to prevent anything from sneaking in.

    I'm sure you get this all the time, but you have SO made my day, and made my job that much more efficient, and I am incredibly thankful for your expertise!!!

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Conditional Formatting/COUNTIF help with multiple criteria

    WOW thank you so much for the kind words. Even if I/we do hear it often (we dont, btw), it is always gratifying to hear it again.

    For many of us here, helping people like yourself, is the main reason we keep coming back. We look forward to seeing you come back again soon.

    The best way to learn excel, is to use excel - ID a problem, and see what you can do to overcome it. a few things to always remember/keep in mind...
    1. Never be afraid to experiment!! The worst that can happen is you need to reload the file, the best that can happen is you learn something new.
    2. Dont be afraid to ask for help here, even if you think the question is silly. We all had to start somewhere, and we have many many newbies on here. At least, we will hold your hand and guide you, at most, we will probably do it for you.

    Yes, you can remove that helper - sometimes they can be a great help though.
    COUNTIFS syntax is pretty much the same as COUNTIF, except you can add many more criteria/tests

  7. #7
    Registered User
    Join Date
    10-20-2014
    Location
    Brisbane, Australia
    MS-Off Ver
    2010
    Posts
    38

    Re: Conditional Formatting/COUNTIF help with multiple criteria

    What a great couple of posts from both of you.
    It is fantastic to see that forums such as this can connect people all over the world
    ...and even more than that - even masterminds care and help

    Well done from Mick - in the land downunder

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Conditional Formatting/COUNTIF help with multiple criteria

    Mick, thank you too, for the kind words, they are always appreciated!!

+ 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. Conditional Formatting - Multiple Criteria
    By zobrien in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 05-24-2017, 07:52 AM
  2. [SOLVED] Conditional Formatting over multiple cells with multiple criteria validator
    By effendrew in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-31-2015, 05:05 PM
  3. [SOLVED] Conditional Formatting - Multiple Criteria
    By Spencer in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-05-2014, 10:36 PM
  4. Replies: 5
    Last Post: 12-28-2012, 02:06 PM
  5. Conditional formatting with Multiple Criteria
    By kgibson20 in forum Excel General
    Replies: 5
    Last Post: 05-21-2012, 02:00 PM
  6. Conditional formatting multiple criteria
    By imcurious in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 10-28-2011, 05:36 AM
  7. Conditional Formatting with multiple AND/OR criteria
    By camdameron in forum Excel General
    Replies: 7
    Last Post: 11-02-2010, 02:03 PM

Tags for this Thread

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