+ Reply to Thread
Results 1 to 9 of 9

Conditional Formatting between dates

  1. #1
    Forum Contributor
    Join Date
    10-22-2014
    Location
    Indonesia
    MS-Off Ver
    2010
    Posts
    177

    Conditional Formatting between dates

    Hello,

    I got a Excel calendar somewhere from Internet, with Conditional Formula that highlighted when a date match with some event dates.

    Working code is:
    Please Login or Register  to view this content.
    I am trying to recreate it but without table, just using range, but it's not working.

    here's current code:
    Please Login or Register  to view this content.

    Attached is example of the sheet.
    contain text A = Red, contain text B = Yellow , contain text C
    Appreciate for any help. Thank you
    Attached Files Attached Files
    Last edited by qiyusi; 03-22-2017 at 09:38 AM.

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Conditional Formatting between dates

    Right Click on your Excel Table, from menu select Table -> Convert to Range

  3. #3
    Forum Contributor
    Join Date
    10-22-2014
    Location
    Indonesia
    MS-Off Ver
    2010
    Posts
    177

    Re: Conditional Formatting between dates

    Hello,

    Thank you for your respond.
    How ever, that's not what i need, it's already in Range format, so no need to convert.

    The problem is the formula not working at all.

  4. #4
    Registered User
    Join Date
    06-04-2014
    Location
    USA
    MS-Off Ver
    Office 2016
    Posts
    72

    Re: Conditional Formatting between dates

    Did you manually type in "$J$18:$J$21"? I only ask because if your sheet were converted with a table and you selected the range, it would not show up as "$J$18:$J$21".

    If you did manually type in "$J$18:$J$21", try deleting it and select the range instead.

    EDIT: I downloaded this sheet and I dont think this is setup correctly. Do you have the original that you downloaded where you said it worked? If so, please upload that as well.
    Last edited by McStagger; 03-22-2017 at 11:09 AM.

  5. #5
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Conditional Formatting between dates

    I didn't say: do this on your own table
    I said: do this on excel table on original file and probably you will see formulas converted to normal, but without original file I can say nothing more.

  6. #6
    Forum Contributor
    Join Date
    10-22-2014
    Location
    Indonesia
    MS-Off Ver
    2010
    Posts
    177

    Re: Conditional Formatting between dates

    Hi Sandy and McStagger,

    Thank you for both respond,

    Yes, attached is the working formula that i got from the net.

    for A,B,C text formatting,
    i have tried : OR(ISNUMBER(SEARCH("TEXT",referencecell),referencecell) is working good.
    Attached Files Attached Files

  7. #7
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Conditional Formatting between dates

    you can try =IF(B6="",FALSE,SUMPRODUCT((B6>=$AA$5:$AA$10)*(B6<=$AB$5:$AB$10)))
    this is "table" formula converted to normal
    second formula is normal and it works

    if you want more events change red accordingly to your needs
    Last edited by sandy666; 03-22-2017 at 06:59 PM.

  8. #8
    Forum Contributor
    Join Date
    10-22-2014
    Location
    Indonesia
    MS-Off Ver
    2010
    Posts
    177

    Re: Conditional Formatting between dates

    Hi,

    Thank you very much, this work great! Yes the formula now works.

    another thing is, there is one condition, where the event only one day, so the J column is blank.
    this causing the conditional formula not working properly.


    trying to nested if with IF J4 blank, then B3 = I4.

    Please Login or Register  to view this content.

  9. #9
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Conditional Formatting between dates

    With last example file:
    Conditional Formatting doesn't work like you think.
    Basic description:
    1. Must be defined top-left cell of the range (here B6)
    2. CF works for TRUE or FALSE (1 or 0) - if TRUE show color if FALSE do nothing

    and it works for one day, I defined 08/02/2013 (start event = end event) and one cell is colored.
    btw. Months of start event and end event should be the same.

+ 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] Multi-Conditional Conditional Formatting and Dates
    By Mousiefuzz in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-07-2015, 04:09 AM
  2. Conditional formatting using dates and using dates without years
    By dcef79 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-15-2014, 05:35 AM
  3. Replies: 11
    Last Post: 05-04-2014, 08:28 PM
  4. [SOLVED] Conditional Formatting Due dates and Completed Dates
    By shansen79 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-30-2014, 01:33 PM
  5. Conditional Formatting with approaching due dates and completed dates
    By rogernation in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-13-2013, 04:12 PM
  6. Replies: 4
    Last Post: 08-29-2013, 11:23 AM
  7. [SOLVED] Conditional Formatting of: dates within 1 month and dates before today.
    By Luke Smith in forum Excel General
    Replies: 5
    Last Post: 06-18-2013, 07:29 AM

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