+ Reply to Thread
Results 1 to 5 of 5

Need excel formula previous date to today

  1. #1
    Forum Contributor
    Join Date
    12-30-2014
    Location
    Saudi Arabia
    MS-Off Ver
    2013
    Posts
    127

    Need excel formula previous date to today

    Dear Excel Fourm Members i want excel formula from previous date to today date

    Employees Name Lats Day of Vacation TODAY Days

    1 Jahangeer 30.11.2017 07.05.2018

    i want to indicate how many days upto-now on my vacation kindly help me screen short attached

    thanks[

    ATTACH]572608[/ATTACH] EMPLOYEE VACATION.xlsx
    Attached Images Attached Images
    Last edited by tariqjahangir; 05-07-2018 at 03:00 AM.

  2. #2
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Need excel formula previous date to today

    In E4;
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    And copy down.
    Make sure Column C contains dates not text.

  3. #3
    Registered User
    Join Date
    05-07-2018
    Location
    Philippines
    MS-Off Ver
    2013
    Posts
    6

    Re: Need excel formula previous date to today

    Hello tariq,

    1. Please try to format your dates as Date
    2. In Days column, just subtract the two columns.

    However, this includes weekends. Hope this helps.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Need excel formula previous date to today

    1st, are your dates real dates, or text looking like dates - text with =isnumber(ell-ref) FALSE indicates text and we will need to convert them.

    If all else fails, upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.

    edit: Just saw your sample file, and your dates are text, not dates - I will see what I can come up with for you
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Need excel formula previous date to today

    OK, try this...
    =TODAY()-DATE(RIGHT(C4,4),MID(C4,4,2), LEFT(C4,2))
    formated as General.

    You really dont need column D

+ 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] My formula works fine with previous data but not with new data added today
    By zoec in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-02-2017, 07:52 AM
  2. [SOLVED] Formula to compare date (including month and year) from a listed date to today's date
    By mhewitson15 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-11-2014, 05:31 PM
  3. [SOLVED] Excel VBA - getting previous and last DATE from TODAY
    By dluhut in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-21-2014, 12:32 PM
  4. Today date and previous data
    By Kevalin O in forum Excel General
    Replies: 2
    Last Post: 08-16-2013, 07:04 AM
  5. Excel 2010 - today's date formula
    By persais in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-20-2013, 06:20 PM
  6. [SOLVED] Excel 2007 : Convert Today's Date To The Previous Month & Year
    By The_Snook in forum Excel General
    Replies: 8
    Last Post: 04-26-2012, 06:37 AM
  7. Replies: 2
    Last Post: 02-12-2010, 06:18 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