+ Reply to Thread
Results 1 to 7 of 7

Formula to determine which cells to format in multiple, separate cells

  1. #1
    Registered User
    Join Date
    04-14-2021
    Location
    Idaho, United States
    MS-Off Ver
    Microsoft 365
    Posts
    4

    Question Formula to determine which cells to format in multiple, separate cells

    Hello all,

    I am newer to formulas in excel, never taking a class on it. I am trying to create a formula for my spreadsheet for work. Essentially, I am trying to create a column that has the due dates for a specific item, the column next to it (right) has the submission date. What I want to do is have the column on right (submission date) change the color of the column on the left (due date) to green once I put the date I submitted the document, see attached picture. I know how to do it individually, but I am trying to do it for the whole column without having to do each cell individually. The reason I do not want to do it individually is that this spreadsheet is of people on my caseload so it is often changing. And since I alphabetize it, the rules get messed up when I add new people and remove old people.

    If this is possible, I would very much appreciate the help!

    Excel Sheet.png

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,794

    Re: Formula to determine which cells to format in multiple, seperate cells.

    Welcome to the forum.

    There are instructions at the top of the page explaining how to attach your sample workbook.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Formula to determine which cells to format in multiple, separate cells

    You can do this with conditional formatting. If the data is in columns A and B you will create a rule for $A:$B using a formula:

    =$B1>0

    If you don't know how to do this or don't know how to adapt this to your file, attach your file as Ali suggested and we can update your file.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  4. #4
    Registered User
    Join Date
    04-14-2021
    Location
    Idaho, United States
    MS-Off Ver
    Microsoft 365
    Posts
    4

    Re: Formula to determine which cells to format in multiple, separate cells

    Okay, this should be it.
    Attached Files Attached Files
    Last edited by Justalex123; 04-14-2021 at 11:19 AM. Reason: Removed attachment and added condensed version

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Formula to determine which cells to format in multiple, separate cells

    You have a large number of CF rules already in this file. They are going to cause problems with any solution I try to offer here.

    You have many rules with the same logic that are duplicated for many individual cells. I can't tell what you intend with your existing rules so I can't fix it.

    Many rules are in pairs with opposite conditions. This guarantees that the cell will be shaded no matter what. Example: If numeric, F19 must always be less then, equal to, or greater than G19. These two rules cover every possibility. However, F19 and G19 are not numeric, so it is unclear what you want this rule to do.
    cfr.JPG

  6. #6
    Registered User
    Join Date
    04-14-2021
    Location
    Idaho, United States
    MS-Off Ver
    Microsoft 365
    Posts
    4

    Re: Formula to determine which cells to format in multiple, separate cells

    The reason there are duplicates is because the cell that is in column "submitted" does not always have a value in it. For example, if the date is 30+ days out, I haven't submitted the document so the cell remains blank and highlighted white. If I submit the document before its due date (which happens because of logistical reasons) then I want the cell in column "RFI Due" to change to green, signifying I have submitted it. Sometimes I can't submit the document by the due date so I submit it past due, but I still want the cell in that column to turn green as well. Hence why there is less than, equal to, and greater than. I have a rule that is the primary rule that if it's blank, its white.

    It is definitely not the most efficient way to do it, but it's the only way I know how to do it. Hopefully that explains things.

  7. #7
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,557

    Re: Formula to determine which cells to format in multiple, separate cells

    It seems that you would like to format column A so that if there is a date in column B or if the date in column A is 30+ days in the future, then the font should be dark green on a light green fill.
    If that is correct then you could delete all of the rules that are supposed to produce a light green fill and dark green font in column A and replace them with the following: =OR(B3<>"",A3>=TODAY()+30) applied to =$A$3:$A$24
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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: 4
    Last Post: 09-04-2016, 10:02 AM
  2. Replies: 1
    Last Post: 06-25-2015, 08:14 AM
  3. Replies: 7
    Last Post: 03-24-2015, 07:44 AM
  4. need correct formula to determine which cells to format
    By regional1500 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-19-2013, 12:22 AM
  5. [SOLVED] Conditional Formatting to Use a formula to determine which cells to format
    By kenadams378 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 05-16-2013, 10:29 AM
  6. [SOLVED] CF - using a formula to determine which cells to format...ISSUE
    By AMSBenji in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-02-2013, 08:43 AM
  7. Use a formula to determine which cells to format?
    By jonvanwyk in forum Excel General
    Replies: 4
    Last Post: 06-04-2012, 11:10 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