+ Reply to Thread
Results 1 to 3 of 3

converting dates to T+/-

  1. #1
    Registered User
    Join Date
    07-15-2014
    Location
    Baltimore
    MS-Off Ver
    2010
    Posts
    2

    converting dates to T+/-

    I am trying to de-identify a database and need to convert dates to T+/-. For example if a person was enrolled on 7/1/2014 and the date that I am de-identifying is 7/7/2014 I need that cell to be converted to T+7. Is there any way to do this in Excel?

  2. #2
    Valued Forum Contributor
    Join Date
    07-07-2014
    Location
    Washington DC
    MS-Off Ver
    2007
    Posts
    1,047

    Re: converting dates to T+/-

    C8 = 7/7/2014
    b8 = 7/1/2014

    ="t+"&(c8-b8)

  3. #3
    Registered User
    Join Date
    07-15-2014
    Location
    Baltimore
    MS-Off Ver
    2010
    Posts
    2

    Re: converting dates to T+/-

    Not even close that only works for numbers. This is what I ended up figuring out

    ="T+"&IFERROR(DATEDIF(B2,A2,"D"),-DATEDIF(A2,B2,"D"))

    In case anyone else needs it

+ 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. Converting monthly dates to quarterly dates
    By kirby5050 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-04-2014, 12:40 AM
  2. [SOLVED] Converting differently-formatted US dates to UK dates
    By Glayva in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-10-2012, 06:06 AM
  3. Converting dates into excel dates
    By tony.nz in forum Excel General
    Replies: 14
    Last Post: 09-15-2009, 10:12 AM
  4. Replies: 2
    Last Post: 04-14-2009, 06:43 AM
  5. Converting Text dates into dates
    By EAB1977 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-20-2006, 12:25 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