+ Reply to Thread
Results 1 to 5 of 5

Excel Conditional Formatting Based on Other Cells

  1. #1
    Registered User
    Join Date
    06-19-2019
    Location
    Hoodsport, WA
    MS-Off Ver
    Microsoft 365
    Posts
    8

    Angry Excel Conditional Formatting Based on Other Cells

    I have a spreadsheet to calculate my accumulated vacation leave hours. The allotted amount is based on how many years I have been with the company. I want to highlight the row and only columns L-P in red if my balance gets close to the allotted amount. I will attach my spreadsheet, but I will also try to explain. I tried a formula like this, but it did not work. =AND($N4=$X$4,$P4<($Y$4-40)) I need the formula to be customizable based on the different amounts in the X and Y columns. Can someone help?
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    06-05-2017
    Location
    Brazil
    MS-Off Ver
    Microsoft 365 Version 2412
    Posts
    1,505

    Re: Excel Conditional Formatting Based on Other Cells

    Please try this formula in the conditional format:

    =AND($N76=$X$4,$P76>$Y$4-40,$P76<$Y$4-20)

    Good luck!

  3. #3
    Registered User
    Join Date
    06-19-2019
    Location
    Hoodsport, WA
    MS-Off Ver
    Microsoft 365
    Posts
    8

    Re: Excel Conditional Formatting Based on Other Cells

    Unfortunately, this did not work. Unless I am doing something wrong?

  4. #4
    Forum Expert
    Join Date
    06-05-2017
    Location
    Brazil
    MS-Off Ver
    Microsoft 365 Version 2412
    Posts
    1,505

    Re: Excel Conditional Formatting Based on Other Cells

    It's probably an issue with the applies to range. It must start in the same row as the row selected in the formula.
    Try this range in the "Applies to" box:

    =$L$76:$P$1000
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,542

    Re: Excel Conditional Formatting Based on Other Cells

    Try, CF: =AND($N7=INDEX($X$2:$X$5,MATCH($N$4,$Y$2:$Y$5,0)),$P7>=$N$4-40)

+ 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] Excel - Conditional formatting based on cells values in another column
    By jrbrutto74 in forum Excel General
    Replies: 1
    Last Post: 02-02-2023, 10:48 AM
  2. Replies: 7
    Last Post: 11-20-2019, 03:50 PM
  3. Replies: 1
    Last Post: 10-04-2016, 05:17 AM
  4. Replies: 1
    Last Post: 08-19-2016, 03:57 PM
  5. [SOLVED] Excel 2010 Conditional Formatting to Highlight input cells based on Dates
    By chrisb84 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-20-2013, 09:39 AM
  6. [SOLVED] Excel 2007 Conditional Formatting for a Row based on value of multiple cells
    By julieowen777 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-22-2013, 10:06 AM
  7. Replies: 3
    Last Post: 04-30-2011, 11:46 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