+ Reply to Thread
Results 1 to 4 of 4

Display comment after class date has passed

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    06-29-2005
    Location
    TN
    MS-Off Ver
    Microsoft 365
    Posts
    327

    Display comment after class date has passed

    Hello All, I'm using this formula to countdown the number days until a class starts. It works good. How can I modify this so that when the class is over, the countdown will display "Class is over"?
    =IF(A6="","No class selected",(A6-TODAY()&" day"&IF(A6-TODAY()>1,"s","")))

    Thanks

  2. #2
    Forum Expert boopathiraja's Avatar
    Join Date
    07-12-2013
    Location
    Coimbatore,TamilNadu, India
    MS-Off Ver
    Excel 2007, 2013, 2016, 365
    Posts
    1,455

    Re: Display comment after class date has passed

    Hi, You mean this ?

    Formula: copy to clipboard
    =IF(A6="","No class selected",IF(A6>=TODAY(),(A6-TODAY()&" day"&IF(A6-TODAY()>1,"s","")),"Class is Over"))
    Click just below left if it helps, Boo?ath?

  3. #3
    Forum Contributor
    Join Date
    06-29-2005
    Location
    TN
    MS-Off Ver
    Microsoft 365
    Posts
    327

    Re: Display comment after class date has passed

    Ah man, that works good, Thanks!

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Display comment after class date has passed

    If A^ equals today you might want to display 'class is over' rather than 0 day.

    Tweak boopathiraja's formula to

    =IF(A6="","No class selected",IF(A6>TODAY(),A6-TODAY()&" day(s)","Class is Over"))
    Life's a spreadsheet, Excel!
    Say thanks, Click *

+ 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] accessing members of a class object passed in as variant type?
    By vientito in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-22-2013, 11:21 PM
  2. Formula to add x months to a date when the date has passed.
    By adamliq in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-30-2013, 10:06 PM
  3. Replies: 1
    Last Post: 03-22-2010, 04:09 PM
  4. Userform.Caption is blank when reference passed to class
    By NickHK in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-25-2006, 11:30 AM
  5. [SOLVED] Date Passed Notification
    By Lori in forum Excel General
    Replies: 3
    Last Post: 04-12-2006, 12:46 PM

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