+ Reply to Thread
Results 1 to 2 of 2

using DATEDIF to find "life cycle" for devices

  1. #1
    Registered User
    Join Date
    08-13-2014
    Location
    USA
    MS-Off Ver
    Office 2010 Pro Plus
    Posts
    1

    using DATEDIF to find "life cycle" for devices

    Hi All,

    I was wondering if anyone could help me out here with writing a formula. I know a little more than the basics of excel, but when it comes to writing formula im not to good. I get this weekly excel report at work for all of our computers that are “surplus” ..there are like 10 different models ranging from regular devices to engineering standard devices. The devices have a “life cycle” 3 years 1 month for engineering, and 3 years 9 months for standard devices.

    The excel sheet I get is broken down into 6 columns (device ID, status, First Install Date, Model, Description) ..I add another column right after the “first install date” column called “end of life cycle”
    What I’m trying to do is write a formula that will select the whole column of “first install date” and output each cell in that column into the new column that I made into the corresponding cells in that.

    For Ex:

    First install date: (C Column) End of Life Cycle Date: (D Column)
    1/2/2007
    2/5/2008
    2/6/2010
    8/20/2009
    11/15/2012
    4/30/2011

    The formula I wrote:
    =DATEDIF(C2:C125,TODAY(),"y")&" years "&DATEDIF(C2:C125,TODAY(),"ym")&" months "&DATEDIF(C2:C125,TODAY(),"md")&" days"

    Rather than doing it cell by cell(there's 125 dates in C) The formula works for cell after cell, but i want to do it all at once. When I try to highlight the “d” column, and enter the formula it outputs only one cell. I want each cell from “C” to output to “D” with correct date difference between the “first install date” and “today’s date”

    I hope you all understand what im trying to do. Not even sure if what im looking for is possible, but any help would be appreciated.

    Thank You.

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: using DATEDIF to find "life cycle" for devices

    Change all the C2:C125 to just C2

    Highlight D2:D125
    Type in the formula and press CTRL + ENTER

+ 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] Optimizing VBA for "Conway's Game of Life"
    By vkgundersen in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-09-2014, 08:07 AM
  2. [SOLVED] Find multiple "text" criteria and return as ""Yes" in Matrix
    By bertrand82 in forum Excel General
    Replies: 11
    Last Post: 04-30-2012, 09:20 AM
  3. Replies: 5
    Last Post: 06-26-2006, 09:23 PM
  4. Replies: 2
    Last Post: 06-12-2006, 12:15 PM
  5. Why "datedif" function results sometimes negative numbers?
    By Ambrosiy in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 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