+ Reply to Thread
Results 1 to 6 of 6

Conditional formatting based on a looked up value.

  1. #1
    Registered User
    Join Date
    11-20-2020
    Location
    New Jersey
    MS-Off Ver
    365
    Posts
    14

    Conditional formatting based on a looked up value.

    I'm working on a dashboard for my workbook, and I'd like to add a quick reference for the status of data on another sheet. The data is simply a Y for Yes or N for No. On the dashboard, I'd like to look up a cell based on a year, month, and account number, then format the cell on my dashboard as red if the cell value is N or green if it is Y.

    In the attachment, you'll see I have a drop down for the year and another for the month, as well as a list of account numbers and providers. I'd like to be able to quickly select a month and year, then glance at my account numbers to see if any data is missing. A red cell will tell me I need to check the status of that account for that month.

    I found a solution to this problem and thought I would share it in case anyone else would like to use it.
    In my table, I changed my Y/N binary for Yes or No to a 1 or 0 for yes or no. Then I used a SUMIFS on my homepage and had it look up the sum of a specific cell. Then I used conditional formatting so if the value was equal to or greater than 1 it gave me the color I wanted. Last, because I used a gradient fill, I changed the font format to ;;; so they showed only the color and no value.
    Attached Files Attached Files
    Last edited by smhelgerson72; 01-19-2021 at 11:17 AM. Reason: Solved

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Conditional formatting based on a looked up value.

    i'm not fully following
    The MONTH & YEAR are text format
    in the sample - can you give an example of the expected results ?
    Which Column has the Y / N

    You have a HOME sheet & Invoice tracing sheet

    In HOME
    you have FY21 & OCT
    So what do you want on what sheet
    ANY ROW where the MONTH & YEAR match the home
    AND Any row where there is a Y OR N ? in what column
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Conditional formatting based on a looked up value.

    For No/Red
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    For Yes/Green
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Is that what you are looking for?
    Attached Files Attached Files
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Registered User
    Join Date
    11-20-2020
    Location
    New Jersey
    MS-Off Ver
    365
    Posts
    14

    Re: Conditional formatting based on a looked up value.

    OK, so in the Invoice Tracking, I'm looking in C and D for the Y or N. I need to tell it to look through columns A, E, and F on the Invoice Tracking tab, and match those with the values in cells C2, C3, and B5:B9, then if the adjacent values in columns C and D on Invoice Tracker are both Y, then highlight the adjacent cell on the Home tab as Green. If one or both of the adjacent cells in column C and D are N, then the cell on the Home tab would be red.
    Is that any more clear?

  5. #5
    Registered User
    Join Date
    11-20-2020
    Location
    New Jersey
    MS-Off Ver
    365
    Posts
    14

    Re: Conditional formatting based on a looked up value.

    That's sort of what I'm looking for. It's closer than where I was. I think I could use the second one with conditional formatting and tell it that if the value = False, then show no text and color the cell red? I'll fiddle with that and let you know what I find out.

    Thanks!

  6. #6
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Conditional formatting based on a looked up value.

    Row 5, sheet home
    Count with ACC, Provider, FY and month
    Formula A:
    =COUNTIFS('Invoice Tracking'!$A$3:$A$69,$B5,'Invoice Tracking'!$B$3:$B$69,$A5,'Invoice Tracking'!$E$3:$E$69,$C$2,'Invoice Tracking'!$F$3:$F$69,$C$3)
    gives 4

    and add 2 columns with "Y"
    Formula B:
    =COUNTIFS('Invoice Tracking'!$A$3:$A$69,$B5,'Invoice Tracking'!$B$3:$B$69,$A5,'Invoice Tracking'!$E$3:$E$69,$C$2,'Invoice Tracking'!$F$3:$F$69,$C$3,'Invoice Tracking'!$C$3:$C$69,"Y",'Invoice Tracking'!$D$3:$D$69,"Y")
    gives 3

    Set defaul color of Home is red, to save one CF formula for red.
    then the conditional formula for green:
    Formula A=Formula B
    Attached Files Attached Files
    Quang PT

+ 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 Formatting based on another cells Conditional Formatting
    By chriskay in forum Excel General
    Replies: 4
    Last Post: 08-22-2019, 05:33 AM
  2. Replies: 1
    Last Post: 10-04-2016, 05:17 AM
  3. Macro to set up conditional message based on results of conditional formatting
    By paysola in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-04-2016, 12:38 AM
  4. [SOLVED] Conditional summing using a range of looked up values
    By nalbie in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-13-2014, 02:33 PM
  5. Replies: 1
    Last Post: 09-20-2013, 06:23 PM
  6. Replies: 12
    Last Post: 03-07-2013, 11:02 PM
  7. [SOLVED] formula to return the value of a cell based on a looked up true reference
    By sarah in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-02-2005, 05:06 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