+ Reply to Thread
Results 1 to 4 of 4

Date Trim Formula

  1. #1
    Registered User
    Join Date
    04-04-2011
    Location
    VA
    MS-Off Ver
    Excel 2016
    Posts
    43

    Exclamation Date Trim Formula

    Hello,

    I just have a small problem, please help,

    I have a cell: "6/2/2011 - 8/2/2011"

    Current Date: Today date 11/2/2011

    and then another cell :Days Outstanding:

    I would like to take Today date and subtract it to 8/2/2011 , that would give me how many days has passed.

    please help (attachment)
    Attached Files Attached Files
    Last edited by AznDragon533; 12-02-2011 at 03:55 PM.

  2. #2
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: Date Trim Formula

    Try any of these,

    In H2 enter =TODAY()

    G6, copy down.

    =H$2-LOOKUP(9E300,RIGHT(F6,{8,9,10})+0)

    Or,

    =H$2-RIGHT(F6,LEN(F6)-FIND("-",F6))
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  3. #3
    Registered User
    Join Date
    04-04-2011
    Location
    VA
    MS-Off Ver
    Excel 2016
    Posts
    43

    Re: Date Trim Formula

    Quote Originally Posted by Haseeb A View Post
    Try any of these,

    In H2 enter =TODAY()

    G6, copy down.

    =H$2-LOOKUP(9E300,RIGHT(F6,{8,9,10})+0)

    Or,

    =H$2-RIGHT(F6,LEN(F6)-FIND("-",F6))
    perfect, thanks!

  4. #4
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Date Trim Formula

    Don't quote whole posts -- it's just clutter.

    If you are responding to a post out of sequence, limit quoted content to a few relevant lines that makes clear to whom and what you are responding.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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