+ Reply to Thread
Results 1 to 13 of 13

Conditional formatting on dates if another cell equals to

  1. #1
    Registered User
    Join Date
    04-10-2019
    Location
    Copenhagen, Denmark
    MS-Off Ver
    2016
    Posts
    12

    Conditional formatting on dates if another cell equals to

    Hi,

    I'm currently making a production planning sheet, and i have just reached a point where i'm facing some problems.

    I have attached a picture of the sheet, so that my explanation of my problem is easier to understand.

    My sheet books time in the calender for each production order based on dates, that works fine. Now i want to assign different production cells to each production order, and if i for instance type cell1 one in one of the cells under "PO assigned to cel", then i want to make the sheet automatically color the booked dates in calender with a given color. so far i have only been able to color the whole row red, i want it to only color the booked dates in the calendar.

    If anybody could help on this matter, i would be very happy.
    Attached Files Attached Files
    Last edited by Mikkel_pet; 07-15-2019 at 05:14 AM.

  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,782

    Re: Conditional formatting on dates if another cell equals to

    Welcome to the forum.

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    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
    Registered User
    Join Date
    04-10-2019
    Location
    Copenhagen, Denmark
    MS-Off Ver
    2016
    Posts
    12

    Re: Conditional formatting on dates if another cell equals to

    Hi AliGW,

    Thank you very much. I have attached a small part of the sheet, this should be enough. i couldn't attach to original because of the file size. i hope that the attached sheet i good enough

  4. #4
    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,782

    Re: Conditional formatting on dates if another cell equals to

    One line of data is not enough to allow us to understand your logic. 10-20 lines of data is usually ideal. Please update the sample file (please ensure that there is a variety of data, not just the same line repeated).

  5. #5
    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,782

    Re: Conditional formatting on dates if another cell equals to

    This rule makes no sense:

    =OR($D2="Cell1")

    In words, what do you think it's doing?

  6. #6
    Registered User
    Join Date
    04-10-2019
    Location
    Copenhagen, Denmark
    MS-Off Ver
    2016
    Posts
    12

    Re: Conditional formatting on dates if another cell equals to

    I have updated the attachment.

    As i explained i don't know how to assign a color to the marked cells in the calendar based on the value under the topic "PO assigned to cell". the rule you're mentioning is coloring the whole row in the calendar, so it was a step closer to what i want.

  7. #7
    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,782

    Re: Conditional formatting on dates if another cell equals to

    Yes, but you haven't answered my question, really: what do you want it to do?

    I'm good, but I'm not a mind-reader ...

  8. #8
    Registered User
    Join Date
    04-10-2019
    Location
    Copenhagen, Denmark
    MS-Off Ver
    2016
    Posts
    12

    Re: Conditional formatting on dates if another cell equals to

    I want the sheet to color the cells in the calendar marked with S, M and F, and only the cells that contains those letters. If the cells under column "D" is marked with Cell1, then it should color the cells in the calendar that have already been filled with text, red. if the cells under column "D" is marked with Cell2, then it should color the cells in the calendar with yellow and if it's marked with Cell3, it should color it orange. is that understandable or should try and explain it in a different way?

  9. #9
    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,782

    Re: Conditional formatting on dates if another cell equals to

    Sort of - I think. Can you provide a version of the data with the cells manually filled in the way you want them to appear? A screenshot of this will suffice at this point.

  10. #10
    Registered User
    Join Date
    04-10-2019
    Location
    Copenhagen, Denmark
    MS-Off Ver
    2016
    Posts
    12

    Re: Conditional formatting on dates if another cell equals to

    Yes of course, it is attached Attachment 632353

  11. #11
    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,782

    Re: Conditional formatting on dates if another cell equals to

    OK - that makes sense now.

    Get rid of all your rules and start again with the following three:

    =AND($D2="Cell1",K2<>"")

    =AND($D2="Cell2",K2<>"")

    =AND($D2="Cell3",K2<>"")

    Apply to the range $K$2:$U$20.

    Tick the Stop if True box for each.

  12. #12
    Registered User
    Join Date
    04-10-2019
    Location
    Copenhagen, Denmark
    MS-Off Ver
    2016
    Posts
    12

    Re: Conditional formatting on dates if another cell equals to

    Thank you very much, it worked!

  13. #13
    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,782

    Re: Conditional formatting on dates if another cell equals to

    You're welcome!

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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: 1
    Last Post: 03-21-2019, 05:26 PM
  2. [SOLVED] Highlight Cell (Conditional Formatting or VBA Worksheet event) equals cell - BINGO tracker
    By jhoelski in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-25-2017, 08:32 PM
  3. [SOLVED] Conditional formatting for dates in another cell
    By NMDIVA in forum Excel Formulas & Functions
    Replies: 27
    Last Post: 01-18-2017, 07:19 PM
  4. [SOLVED] Conditional formatting - equals multiple values
    By butlerar in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-20-2015, 04:17 PM
  5. Conditional formatting - highlight range of cells when it equals a cell
    By kingkong321 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-20-2012, 05:13 AM
  6. IF Dates and conditional formatting (cell colours)
    By aluniquen in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-28-2012, 04:32 AM
  7. Replies: 3
    Last Post: 08-16-2011, 09:13 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