+ Reply to Thread
Results 1 to 8 of 8

Categorizing and Timing Formula

  1. #1
    Registered User
    Join Date
    07-10-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    86

    Categorizing and Timing Formula

    Hello, I'm having a lot of trouble figuring out what formula is best to use in my model.
    We sell subscriptions.

    Management is asking that if we have never sold to a customer ever, then this should be labeled as a "New Customer".
    If the customer did exist and has renewed 90 days or less prior to their subscription expiration date, then this customer should be labeled as a "Continuing Customer". If the customer let their subscription expire, but later bought another subscription then this should be labeled as "Renewal".

    The Second Part requires that the subscription revenue be allocated and summed in the appropriate month.

    See attached spreadsheet, the cells in red font are the ones I need formulas (column E and rows 14, 15 and 16).

    Thanks so much!
    Attached Files Attached Files

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2405
    Posts
    13,427

    Re: Categorizing and Timing Formula

    idontexcelinexcel,

    We are light on data. Without a subscriber's history (by dates) I don't see a way to discriminate New from Continuing or Renewal.
    Dave

  3. #3
    Registered User
    Join Date
    07-10-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    86

    Re: Categorizing and Timing Formula

    Hello Flame, I see your point.
    I'm thinking of adding a column with the date the subscriber first appeared.
    Would that help?
    Any suggestions?

  4. #4
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Categorizing and Timing Formula

    hi there. i don't understand why row 11 is "Renewal". your criteria says "3. If customer already existed and subscribed again but after the prior subscription end date……"Renewal".

    Glen Doe subscribed in 1-Dec-16 under row 11. his last subscription ended in 1-Nov-16. that is just 30 days and within 90 days right? so shouldn't it be "Continuing Customer"?

    if what i explained is correct, your formula could be:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    adding a column with the date the subscriber first appeared helps. assuming that is available in column E, formula would look something like:
    =IF(COUNTIF($A$2:A2,A2)=1,"New Customer",IF((B2-E2)<=90,"Continuing Customer","Renewal"))

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  5. #5
    Registered User
    Join Date
    07-10-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    86

    Re: Categorizing and Timing Formula

    Hi Beni, apologies for the confusion. Poor English on my part.
    What I meant to say is 90 days or less of the Subscription End Date.
    So in this case, Glen Doe's first subscription ended on 11/1/2016 (so 90 days before that (August 1, 2016 to September 30, 2016) would constitute Continuing.....a single day after 11/1/2016 would be Renewal.

    Thanks!

  6. #6
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,915

    Re: Categorizing and Timing Formula

    e2=IF(MATCH(A2,A:A,0)=ROW(),"New Customer",IF(B2>LOOKUP(2,1/(A$1:A1=A2),C$1:C1),"Renewal","Continuing Customer"))
    Try this and copy towards down
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2405
    Posts
    13,427

    Re: Categorizing and Timing Formula

    Quote Originally Posted by idontexcelinexcel View Post
    Hello Flame, I see your point.
    I'm thinking of adding a column with the date the subscriber first appeared.
    Would that help?
    Any suggestions?
    It would help me. But apparently others see something I do not. Check their work. It might save you some trouble.

  8. #8
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,676

    Re: Categorizing and Timing Formula

    ARRAY formula in E2, Then drag down

    =IF(COUNTIF($A$2:$A2,$A2)=1,"New Customer",IF($B2>MAX(IFERROR(($A$1:$A1=$A2)*($C$1:$C1),0)),"Renewal",IF($B2>=MAX(IFERROR(($A$1:$A1=$A2)*($C$1:$C1),0))-90,"Continuing Customer","")))

    Formula in F21, Then drag across

    =SUMPRODUCT(($E$2:$E$11=$E21)*($B$2:$B$11<=F$13)*($C$2:$C$11>=F$13)*($D$2:$D$11))
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

+ 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. creating filters/categorizing data within a formula
    By reggie:| in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-06-2016, 12:36 PM
  2. [SOLVED] Formula to sum timing with off in cell
    By Liz_Biz in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-29-2014, 12:25 PM
  3. Formula for calculating duration between two timing
    By Kuttisankaran in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-12-2014, 06:27 AM
  4. Need a Formula for the calculation of TAT timing
    By Manish_Gupta in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-06-2013, 12:35 AM
  5. Formula for categorizing and labeling duplicate entry
    By wishiknewexcel in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 03-31-2013, 01:14 AM
  6. Categorizing rows/columns for formula use
    By kelson49er in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 05-27-2010, 12:09 PM
  7. formula for timing difference
    By kaustubhghag in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-14-2008, 09:46 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