+ Reply to Thread
Results 1 to 9 of 9

[CF] Highlighting blank columns based on a date in a different cell on a full calendar.

  1. #1
    Registered User
    Join Date
    10-11-2023
    Location
    Japan
    MS-Off Ver
    MS 365 (ver.16.78) MAC
    Posts
    14

    Question [CF] Highlighting blank columns based on a date in a different cell on a full calendar.

    Dear good people on Excel Forum.

    Good morning from Japan.
    I am new here and require some help with Excel Conditional Formatting.

    I am creating a schedule calendar for year 2024. Please see attached.
    I currently using the formula below to highlight the whole column of that specific date (Right now, Setup is of Jan 15th, Event is of Jan 16th)

    =$H$2=DATE(2024,1,15)
    =$H$1=DATE(2024,1,15)

    As it will take me ages to go through Jan to Dec with 3 different colors (including takedown),
    I was wondering if there is a much more simpler way where the excel can detect the "Month" and then detect the "Date" and then only proceed to highlight the whole column with just one full formula which covers the whole calendar?

    Sorry if my explanation is not clear enough, and if there are any questions which will help please let me know. Thank you in advance!

    Screenshot 2023-10-12 at 9.51.47.png
    Last edited by MosesLimLA; 10-16-2023 at 09:30 PM.

  2. #2
    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: [CF] Highlighting blank columns based on a date in a different cell on a full calendar

    Welcome to the Forum MosesLimLA!

    You need to tell us more about what you are trying to do. Remember, you know everything about what you are doing, and we don't know anything.

    First, always attach a file instead of just showing a picture. That way we can edit your file to give you the solution. See yellow banner at the top of the page.

    As near as I can figure, you want to color a column orange if it is for the date for Event, and green if it is for the date in Setup, and ???? for Takedown. You only need one rule for each color. So you need 3 rules instead of hundreds. (I don't know what color you want to use for takedown).

    However, your numbers in row 5 (I think it's row 5, you did not show column or row headings) must be date values for this to work. I do not know what your data is (we cannot tell from a picture).

    Orange:
    Formula: =$H$2=B$5
    Applies to: $B$7:$AA$107

    Green:
    Formula: =$H$1=B$5
    Applies to: $B$7:$AA$107

    Other:
    Formula: =$H$3=B$5
    Applies to: $B$7:$AA$107
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    10-11-2023
    Location
    Japan
    MS-Off Ver
    MS 365 (ver.16.78) MAC
    Posts
    14

    Re: [CF] Highlighting blank columns based on a date in a different cell on a full calendar

    Hi Jeff,

    Thank you very much for the response and apologies for the insufficient information.
    I work in events, and everytime we do an event we first make a retro-planning and work the dates backwards to see how far in advance we need to start so that we can get the things ready in time.
    The timings of the clients coming to us and letting us know is unpredictable, sometimes they come to us 1year in advance and sometimes just 2months or even 1 month before they day of their desired event day.

    Depending on the scale of the event and timing of when the client comes to us, I make a new retro-planning sheet each time for the period we have right till the event.
    (For example, the client comes to us in Feb saying that they want to do an event in Nov, and the scale of the event requires around 3months of preparation in advance.
    So I create a retro-planning sheet just on the months of Sep, Oct and Nov)
    But this time, i want to create a MASTER retro-planning excel sheet where I can just duplicate the sheet to adjust to the designated event and take out unnecessary "Months" of the calendar.

    Please see below attached my current excel.

    Retro Planning Template 2024.xlsm

    Yes, 3 colors. I have added the last color "Pinkish red" for TAKEDOWN.
    Thank you very much for the solution as well, understood!

    Current my row 5 are just numbers and not date values.
    Would it be possible to change them into date values but still keep them seen as numbers? (1,2,3,4,5 etc)

    ----------------------------------------------------------------------------------------------------------------------------
    *Additionally, as I would like to use this same template for the years to come. (2025, 2026, 2027 ... etc)
    I have tweaked the "Edit Formatting Rule" to the below,
    =$H$1=DATE(YEAR(TODAY()),1,31)

    I assume row 5 would also need to have the same rules (YEAR(TODAY()) as well correct?

  4. #4
    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: [CF] Highlighting blank columns based on a date in a different cell on a full calendar

    I have updated your day numbers to be actual dates, showing only the day number. I also updated the next row to show the day-of-week automatically with a formula.

    We should also add conditional formatting to show weekends and holidays or it will be nightmare when you go to the next year.

    It seems that now your problem is more complicated than I thought because each of the three rules has a range of dates, not a single date as highlighted in your screenshot. For each color, do you want only the begin and dates dates to be highlighted, or all the dates in between? I set it up for just the first and last date, but it can be easily changed.

    In your sample file the begin date for Takedown is later than the end date for Takedown, so the dates are highlighted but you should fix that.

    Setup start is in the previous year so will not be highlighted.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    10-11-2023
    Location
    Japan
    MS-Off Ver
    MS 365 (ver.16.78) MAC
    Posts
    14

    Re: [CF] Highlighting blank columns based on a date in a different cell on a full calendar

    Hi Jeff,

    Good afternoon from Japan.
    Thank you very much for the revised CF! Learned a new thing today.

    Also appreciated for pointing out the highlighting of weekends and holidays, that would really save me so much time!
    Would it be possible to do this based on specifically Japan's Holidays?
    Sorry as I am a beginner and am keen on learning, would you also kindly explain the formula for the weekend / Holiday as well?
    I was searching through the internet for answers and could only come upon the below,

    For weekend formula, it would be

    "=OR(WEEKDAY(C5)=7,WEEKDAY(C5)=1)" correct?
    Couldnt figure out how to link it to C5. Or would it be easier if I link it to C6?


    Sorry about that as I forgot to mention that there will be multiple days for each category depending on the scale of the event.
    Yes I would also love to have the in-betweens highlighted as well.

    Please find attached cleaned-up version.
    I have also added a new tab, as the year 2024 has Feb 29th.

    MosesLimLA=MASTER_Retro Planning Template1013.xlsm


    Once again thank you so much and looking forward to your response!

  6. #6
    Registered User
    Join Date
    10-11-2023
    Location
    Japan
    MS-Off Ver
    MS 365 (ver.16.78) MAC
    Posts
    14

    Re: [CF] Highlighting blank columns based on a date in a different cell on a full calendar

    Hi Jeff,

    Good afternoon from Japan, and hope you had a great weekend.
    Apologies for the back-to-back replies.

    I have proceeded to add the CF for
    - "Highlighting weekend" CF using =WEEKDAY
    = "Highlighting holidays" CF using =OR

    Please find attached updated version and was wondering if you could spare a few minutes to look at it and let me know if this would work for my excel.

    (TEST) MASTER_Retro Planning Template copy.xlsm

    Thank you very much and looking forward to hearing from you!

    Best,

  7. #7
    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: [CF] Highlighting blank columns based on a date in a different cell on a full calendar

    All formatting is now automatic. Just enter the year in B3.

    The gray shading for weekends is based on showing an "S" in the for day. Simpler than calculating day of week.

    It's better to put the holidays on another sheet. And avoid merged cells.

    I used formulas for your holidays that will automatically set the date based on whatever year it is. I think I got them all correct but showed the logic used if you need to adjust any of the formulas.

    The vertical lines for each month are now automatic so you don't have to change anything for leap year.

  8. #8
    Registered User
    Join Date
    10-11-2023
    Location
    Japan
    MS-Off Ver
    MS 365 (ver.16.78) MAC
    Posts
    14

    Re: [CF] Highlighting blank columns based on a date in a different cell on a full calendar

    Hi Jeff,

    Good morning from Japan.
    Thank you very much for the revisions! Now this is way more convenient and time-saving than what I was expecting!
    Understood regarding "S" for weekends, holiday tab with formula & explanation.
    Also appreciated on the vertical line, was also thinking whether if there was a way to automate that and you've done for me. Super thankful!

    All cleared for this thread! Thank you!

  9. #9
    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: [CF] Highlighting blank columns based on a date in a different cell on a full calendar

    Glad to help! I've done something similar for my own work so I did not have to rethink this from scratch.

    The one drawback of CF is that it takes precedence over your other formatting, like the colored horizontal bars you're using.

+ 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: 12-16-2022, 09:09 AM
  2. [SOLVED] Highlighting days in a calendar based on a pattern.
    By sean.d.reeves in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 04-16-2020, 02:18 PM
  3. Highlighting specific days on a calendar based on work patterns
    By BlissC in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-06-2019, 09:03 AM
  4. [SOLVED] Highlighting a cell based on the date typed in another cell of a different location
    By Anuru in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-18-2014, 04:20 AM
  5. [SOLVED] Highlighting a cell based on formula with a date
    By Dena in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-11-2013, 08:42 PM
  6. [SOLVED] Complaints Sheet - Highlighting row if blank cell is blank for two days
    By northern88 in forum Excel General
    Replies: 4
    Last Post: 11-01-2012, 07:41 PM
  7. Highlighting a Cell, based on value / blank.
    By robert_shindorf in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-29-2008, 07:42 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