Consulting

Results 1 to 3 of 3

Thread: Format Cells based on start & end date!

  1. #1
    VBAX Contributor
    Joined
    Jul 2011
    Location
    Manchester
    Posts
    142
    Location

    Format Cells based on start & end date!

    Hi everyone

    Is it possible to automate the formatting of the months cellsin the attached example workbook based on the start & end date columns? At the moment everyone does it manually so I’vetried messing with conditional formatting but can’t get anything to work.
    Thank you as always for any help or pointers in rightdirection
    Mykal

    Attached Files Attached Files

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Does this CF formula do what you want to do?

    =AND(TEXT($A3,"yyyymm")<=TEXT(C$2,"yyyymm"),TEXT($B3,"yyyymm")>=TEXT(C$2,"yyyymm"))
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Contributor
    Joined
    Jul 2011
    Location
    Manchester
    Posts
    142
    Location
    Quote Originally Posted by xld View Post
    Does this CF formula do what you want to do?

    =AND(TEXT($A3,"yyyymm")<=TEXT(C$2,"yyyymm"),TEXT($B3,"yyyymm")>=TEXT(C$2,"yyyymm"))
    Hi xld

    Absolutely prefect and thank you very much for your helptoo, very much appreciated.

    Mykal
    Last edited by mykal66; 04-09-2019 at 03:03 AM. Reason: wrong name

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •