+ Reply to Thread
Results 1 to 7 of 7

I don't know how to get this formula...

  1. #1
    Registered User
    Join Date
    03-22-2018
    Location
    Estonia
    MS-Off Ver
    2016
    Posts
    1

    I don't know how to get this formula...

    Hello,

    I need to create a formula that can tell if the date entered is:
    1. present date
    2. past date
    3. future date
    4. my birthday(24th march)
    This formula needs to work any date, so i know that the "today" command needs to be used, that's all i know tho...
    so...any help?

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,444

    Re: I don't know how to get this formula...

    Hello,

    Is this any use to you?


    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by sweep; 03-23-2018 at 06:09 AM. Reason: Workaround for the firewall issue
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,883

    Re: I don't know how to get this formula...

    Something like below?

    =IF(Text(dateCell,"mmdd")="0324","Birthday",IF(dateCell<Today(),"Past",IF(dateCell>Today(),"Future","Present")))

    Though I'd likely store Today() in another cell and reference that.
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  4. #4
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: I don't know how to get this formula...

    Quote Originally Posted by sweep View Post
    Hello,

    Is this any use to you?


    Apologies, I can't complete the formula as the site is firewalling me.
    Place a space around any < > characters, should be ok then
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  5. #5
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,883

    Re: I don't know how to get this formula...

    Apologies, I can't complete the formula as the site is firewalling me.
    Or use font color code for black right after < or > operator.
    That's how I usually do it. So formula can be copied and pasted as is.

  6. #6
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: I don't know how to get this formula...

    Administrative Note:
    • We would love to continue to help you with your query, but first, before we can proceed…
    • Please see Forum Rule #1 about proper thread titles and adjust accordingly...
    HTH
    Regards, Jeff

  7. #7
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,444

    Re: I don't know how to get this formula...

    @Special K & CK76 - Thanks for the advise..

+ 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: 5
    Last Post: 02-16-2018, 06:50 AM
  2. Replies: 8
    Last Post: 09-22-2017, 05:41 AM
  3. Excel formula bar to display the result of the formula , not the formula?
    By max_max in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-18-2016, 07:15 PM
  4. Replies: 11
    Last Post: 06-06-2014, 03:34 PM
  5. how to hide formula in formula box, view lookup result in formula box?
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2013, 04:06 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