+ Reply to Thread
Results 1 to 9 of 9

Conditionally Format A Single cell based on 2 columns of data

  1. #1
    Registered User
    Join Date
    11-04-2022
    Location
    Halifax, Nova Scotia
    MS-Off Ver
    MS Office Standard 2016
    Posts
    5

    Exclamation Conditionally Format A Single cell based on 2 columns of data

    Hi all,

    I have a checklist for the required documents located in a separate tab. It has two columns of checkboxes; Needed, and Received. The idea is when someone needs a document, they check 'Needed' - it highlights the row, and when it is received they check 'Received'. Fairly simple stuff.

    What I am looking to do is create a warning icon on our main page that when a document is marked as Needed (and thus the linked cell reads TRUE), but the document has not been received (thus the linked cell for that checkbox reads FALSE) for any of the documents in the column, it will conditionally format the cell bright yellow w/ red text.

    I can obviously get the first column to work w/ the following formula.

    Please Login or Register  to view this content.
    My data goes to Q24, and R24. Q column for Needed, and R column for Received.

    Any help would be greatly appreciated!

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: Conditionally Format A Single cell based on 2 columns of data

    You are using a formula that's meant to return a result to a cell. CF formulas only need to evaluate to true or false:
    =AND(Documents!$Q2=TRUE,Documents!$R2=FALSE)
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    11-04-2022
    Location
    Halifax, Nova Scotia
    MS-Off Ver
    MS Office Standard 2016
    Posts
    5

    Re: Conditionally Format A Single cell based on 2 columns of data

    Thank you so much! This formula also works; however, it only fires on the first item on the list.

    I believe the issue is because I am trying to conditionally format a single cell, and not the same amount of rows as exist in the document checklist.

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: Conditionally Format A Single cell based on 2 columns of data

    Well, without a sample workbook, I guess you can try changing the refers to range to Q2:R24.

  5. #5
    Registered User
    Join Date
    11-04-2022
    Location
    Halifax, Nova Scotia
    MS-Off Ver
    MS Office Standard 2016
    Posts
    5

    Re: Conditionally Format A Single cell based on 2 columns of data

    Here - I have attached a sample workbook!
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    11-04-2022
    Location
    Halifax, Nova Scotia
    MS-Off Ver
    MS Office Standard 2016
    Posts
    5

    Re: Conditionally Format A Single cell based on 2 columns of data

    Quote Originally Posted by protonLeah View Post
    Well, without a sample workbook, I guess you can try changing the refers to range to Q2:R24.
    I tried this and it didn't work; I attached a sample workbook in my previous post.

  7. #7
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: Conditionally Format A Single cell based on 2 columns of data

    You don't need merged cells in column C:D, it serves no purpose. The sample you posted was blank (both sheets) so I made up some "data" and applied the conditional formatting rules. I used a helper column on Main sheet.
    I created two named ranges that could be made dynamic:
    DocList =Documents!$C$2:$C$24
    stat =Documents!$S$2:$S$24
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    11-04-2022
    Location
    Halifax, Nova Scotia
    MS-Off Ver
    MS Office Standard 2016
    Posts
    5

    Re: Conditionally Format A Single cell based on 2 columns of data

    I left the document without data. I am not sure if you saw the note I had placed but my goal is to make the single block in the top right-hand corner turn yellow whenever any of the 'documents requested' is marked as required, but not as received.

    Excel Example.png

    Your example has the list of documents on both pages and simply highlights them when they are individually not received.

    I am essentially trying to build a warning for my staff so that they know an outstanding document is required from their main working page.
    Last edited by AliGW; 11-07-2022 at 08:12 AM. Reason: Please DON'T quote unnecessarily!

  9. #9
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: Conditionally Format A Single cell based on 2 columns of data

    Oh!
    Ok, on docs sheet cell S2 (named DocsDue):=COUNTIF(Q2:Q24,TRUE)>COUNTIF(R2:R24,TRUE)
    On Main in your status block, CF: =DocsDue, and formatted yellow fill, bold red text
    Attached Files Attached Files

+ 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: 3
    Last Post: 03-17-2021, 08:19 AM
  2. Replies: 1
    Last Post: 01-04-2017, 06:00 PM
  3. Replies: 1
    Last Post: 01-04-2017, 05:59 PM
  4. Replies: 1
    Last Post: 07-03-2014, 06:33 AM
  5. [SOLVED] Two columns data in single column conditionally
    By nur2544 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-07-2014, 01:55 PM
  6. Conditionally format currency based on another cell
    By hugowhere in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-28-2014, 03:41 PM
  7. Replies: 3
    Last Post: 04-04-2013, 08:36 AM

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