+ Reply to Thread
Results 1 to 3 of 3

Adding If/Then to format cells based on date

  1. #1
    Registered User
    Join Date
    04-30-2021
    Location
    Canada
    MS-Off Ver
    365
    Posts
    12

    Adding If/Then to format cells based on date

    Hello,

    I'm working on an interactive calendar and I would like to add two functions to an active X button. This is my code at the moment:

    Please Login or Register  to view this content.
    Both functions would do something like "If value in A1 is less than 25" then format cell "A2" color and text as in my previous code, just either in a different column.

    Thanks for any help,

    Cheers,

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,943

    Re: Adding If/Then to format cells based on date

    It's not clear (to me at least) what you're trying to achieve. So if A1 is <25 then change the colour of A2, and then what??

    BSB

  3. #3
    Registered User
    Join Date
    04-30-2021
    Location
    Canada
    MS-Off Ver
    365
    Posts
    12
    Quote Originally Posted by BadlySpelledBuoy View Post
    It's not clear (to me at least) what you're trying to achieve. So if A1 is <25 then change the colour of A2, and then what??

    BSB
    That's it. Change the color of A2 and put a small text in the cell.

+ 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. Conditional format cells based upon matching cells & date range from today?
    By Hites_05 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-19-2022, 03:20 PM
  2. Adding up cells based on dropdown date
    By Fawa in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-13-2019, 03:19 PM
  3. Coloring cells based on date range and adding a shape at a certain date
    By moomphas in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-23-2018, 05:17 AM
  4. [SOLVED] Adding a range of cells based on matching date stamps
    By Bonzopookie in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-07-2015, 10:42 AM
  5. [SOLVED] Adding Or Subtracting Cells Based On A Date Within A Seperate Cell
    By Gtrtim112 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-09-2013, 03:09 PM
  6. Replies: 1
    Last Post: 09-30-2012, 03:01 PM
  7. adding specific cells based on a corresponding date
    By bluemoir in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-09-2006, 02:00 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