+ Reply to Thread
Results 1 to 5 of 5

Convert date text inside a cell into DATE() type inside a function

  1. #1
    Registered User
    Join Date
    06-04-2020
    Location
    Timisoara
    MS-Off Ver
    365
    Posts
    4

    Convert date text inside a cell into DATE() type inside a function

    So I have attached this Deadline Tracker, and it's purpose is to calculate the difference between the "Start Date" column and the "Due Date" column, and to give the row a Status and Color according to this difference between the dates.

    The problem that I have encountered is that I need to write the "Due Date" as a "=Date(year,month,day)" in order for the "Days Remaining" formula to work, and this takes a lot more time than simply writing say "02.04.2020".
    I am definitely not a "functions master" in Excel and have been struggling with this problem for the last 2 hours

    Could somebody who knows better give a piece of advice in this situation?

    deadline tracker ex.xlsx
    Last edited by xChristy; 06-04-2020 at 09:38 AM.

  2. #2
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: Convert date text inside a cell into DATE() type inside a function

    write the date as 2/4/20 and it is entered as a date, it will save you a lot of time down the line

  3. #3
    Registered User
    Join Date
    05-14-2020
    Location
    Mauritius
    MS-Off Ver
    Office 365
    Posts
    97

    Re: Convert date text inside a cell into DATE() type inside a function

    Hi,

    Dates are like numbers in Excel. e.g. the todays date 04/06/2020 = 43986
    So if you want to count only with full days you can simply use substraction.
    in your line 4 for example in F4 the formula: =E4-D4 or =[@[DUE DATE]]-[@[START DATE]]
    In this case you don't need a complicated formula.
    And if you don't want a negative number in F because the Due date is missing then so:
    =IF([@[DUE DATE]]-[@[START DATE]]<0,"",[@[DUE DATE]]-[@[START DATE]])
    Last edited by MRUTOR; 06-04-2020 at 09:00 AM.
    Greetings

    Tor


  4. #4
    Registered User
    Join Date
    06-04-2020
    Location
    Timisoara
    MS-Off Ver
    365
    Posts
    4

    Re: Convert date text inside a cell into DATE() type inside a function

    I cannot believe how simple a solution it was! Thank you sooo much for saving me from such a headache!

  5. #5
    Registered User
    Join Date
    05-14-2020
    Location
    Mauritius
    MS-Off Ver
    Office 365
    Posts
    97

    Re: Convert date text inside a cell into DATE() type inside a function

    You are welcome

+ 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. Date calculation inside of IF function (date+3), etc.
    By Chevy15004x4 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-20-2019, 10:12 AM
  2. INDIRECT/ADDRESS inside LINEST function versus inside INTERCEPT
    By slny06 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-14-2019, 08:51 AM
  3. [SOLVED] Working with Date and time inside a string of text
    By sputylo84 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-27-2016, 10:03 AM
  4. search inside a date function
    By davebue in forum Excel General
    Replies: 2
    Last Post: 07-18-2013, 10:14 AM
  5. Replies: 1
    Last Post: 05-10-2012, 11:51 PM
  6. Replies: 2
    Last Post: 06-14-2010, 03:28 PM
  7. [SOLVED] How can I convert Text into Date? (See inside)
    By Yonah Sudwerts in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-10-2005, 01:06 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