+ Reply to Thread
Results 1 to 6 of 6

Calculating product life by month

  1. #1
    Registered User
    Join Date
    02-26-2014
    Location
    Louisville, KY
    MS-Off Ver
    Excel 2010
    Posts
    3

    Calculating product life by month

    All,

    I am looking for a way to calculate the specific numbered month in a model's product life starting with 1. EX. If model ABC's first month is 2/2013, I would like for that to be listed as 1, 3/2013 would be 2, 2/2014 would be 13 and so on. My data contains roughly 100,000 lines and 200 models with everything being spread out. Attached is a basic version of what I am looking to accomplish.

    If you have any questions, please let me know. Thank you in advance.
    Attached Files Attached Files

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Calculating product life by month

    Can you type expected results manually? It it not clear, for me at least.
    Quang PT

  3. #3
    Registered User
    Join Date
    02-26-2014
    Location
    Louisville, KY
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Calculating product life by month

    I have manually entered the result that I am looking for. I need to identify the earliest month that a specific model number is listed and "start" the product life with 1. Each month after that would be assigned 2,3,4,5....14,15..however many months the product life lasts as new data is added.
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    12-09-2013
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    171

    Re: Calculating product life by month

    I hope this can be solved through the UDF, is it fine for you.
    Like my answer, then click * below

  5. #5
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Calculating product life by month

    Try this array formula in D2:

    =DATEDIF(MIN(IF($A$2:A2=A2,$C$2:C2)),C2,"m")+1

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

  6. #6
    Registered User
    Join Date
    02-26-2014
    Location
    Louisville, KY
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Calculating product life by month

    That did work. Thank you for the help Bebo, I appreciate 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. Replies: 2
    Last Post: 02-07-2017, 03:47 PM
  2. Replies: 1
    Last Post: 09-29-2012, 02:24 PM
  3. Replies: 3
    Last Post: 11-08-2010, 10:26 PM
  4. Calculating 12 month and annualized returns - using product()
    By tn80 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-23-2008, 11:19 AM
  5. Replies: 0
    Last Post: 03-15-2005, 10:06 AM

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