+ Reply to Thread
Results 1 to 10 of 10

Customer have scheduled weekly payment, each new weekly customer starts from the beginnig.

  1. #1
    Registered User
    Join Date
    04-26-2017
    Location
    Urbe
    MS-Off Ver
    Office 365
    Posts
    20

    Customer have scheduled weekly payment, each new weekly customer starts from the beginnig.

    Hello Guys,
    I have 16 treatment phases for new medical patients (Q).
    Each phase is done in a given week, with a corresponding payment (P).
    I need to figure out weekly revenues for a year, considering that every new patient per week will start again from the first phase of the treatment.

    I have started with a matrix approach that work, but I am sure there is a smarter way to do that without using macros (I'm not able to...).
    Thanks a lot! :)

    Image.png

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

    Re: Customer have scheduled weekly payment, each new weekly customer starts from the begin

    Edit There are extra spaces in Frequency column (C). Those have to be removed for this to work.

    For starters you can simplify G10:M12 with this formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    I am still working on the rest.
    Last edited by FlameRetired; 08-28-2019 at 04:46 PM.
    Dave

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

    Re: Customer have scheduled weekly payment, each new weekly customer starts from the begin

    In G4:M6
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Between those two formulas you get the matrices you wanted ... I think.


    F
    G
    H
    I
    J
    K
    L
    M
    1
    2
    Field
    Week 1
    Week 2
    Week 3
    Week 4
    Week 5
    Week 6
    Week 7
    3
    Quantity
    12
    7
    6
    4
    6
    3
    8
    4
    Phase 1
    6,000
    3,500
    3,000
    2,000
    3,000
    1,500
    4,000
    5
    Phase 2
    -
    2,800
    2,400
    1,600
    2,400
    1,200
    3,200
    6
    Phase 3
    -
    4,200
    3,600
    2,400
    3,600
    1,800
    4,800
    7
    Revenue
    6,000
    10,500
    9,000
    6,000
    9,000
    4,500
    12,000
    8
    9
    Phase
    Week 1
    Week 2
    Week 3
    Week 4
    Week 5
    Week 6
    Week 7
    10
    Phase 1
    500
    -
    -
    -
    -
    -
    -
    11
    Phase 2
    -
    400
    -
    -
    -
    -
    -
    12
    Phase 3
    -
    600
    -
    -
    -
    -
    -

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

    Re: Customer have scheduled weekly payment, each new weekly customer starts from the begin

    Another way.

    Skip the bottom matrix and just do this in G4:M6
    Formula: copy to clipboard
    Please Login or Register  to view this content.

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

    Re: Customer have scheduled weekly payment, each new weekly customer starts from the begin

    Another way to avoid the bottom matrix and without the IFERROR calls. In G4:M6
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    04-26-2017
    Location
    Urbe
    MS-Off Ver
    Office 365
    Posts
    20

    Re: Customer have scheduled weekly payment, each new weekly customer starts from the begin

    This looks pretty, and it works!
    Didn't know the MMULT function. I'll study a little bit the formula in order to learn it.
    Thanks a lot

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

    Re: Customer have scheduled weekly payment, each new weekly customer starts from the begin

    You are welcome. Thank you for the feedback.

    BTW: I got a little over exuberant with that last formula. It can be shortened/simplified with
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by FlameRetired; 08-30-2019 at 08:10 AM.

  8. #8
    Registered User
    Join Date
    04-26-2017
    Location
    Urbe
    MS-Off Ver
    Office 365
    Posts
    20

    Re: Customer have scheduled weekly payment, each new weekly customer starts from the begin

    What does the "--" stands for?

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

    Re: Customer have scheduled weekly payment, each new weekly customer starts from the begin

    When comparisons such as ($F4=$B$3:$B$18) are calculated they return an array of TRUE/FALSE. TRUE/FALSE have underlying numeric values of 1/0. The "--" is one way of coercing those numeric values. Also an arithmetic operation will do the same ... *1, +0, ^1, /1.

    If you select one of the cells with that formula, click Formulas > Evaluate formula and click Evaluate repeatedly Excel shows step by step how it calculates the formula. In this case you will see the TRUE/FALSE to 1/0 happening.

  10. #10
    Registered User
    Join Date
    04-26-2017
    Location
    Urbe
    MS-Off Ver
    Office 365
    Posts
    20

    Re: Customer have scheduled weekly payment, each new weekly customer starts from the begin

    Quote Originally Posted by FlameRetired View Post
    You are welcome. Thank you for the feedback.

    BTW: I got a little over exuberant with that last formula. It can be shortened/simplified with
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    I am sorry to bother you again...
    But I am trying to adopt a more elegant solution, but don't know if it is possible without using macros...

    I have complicated the model a little bit more, as follows:
    1. There is a decreasing retention rate from Phase 0 (first visit);
    2. I have input for 1 year but the period of the flow is 5 years;
    3. Added cost in order to calculate margin;
    4. As before, each new customer will start from t0 (week 1) and follow the same iter of treatment.

    The challenge for me is to differentiate new customers and existing customers.
    How do I tell Excel to start from t0 with a new customer and follow the same iter for past customers?

    Is it possible to develop such a formula without transposing Tratments into columns?
    Attached Files Attached Files

+ 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. Generate a separate staff customer list based on larger customer table
    By CARROLLJP in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-15-2018, 04:40 PM
  2. Customer Payment Methods
    By bsd221 in forum Excel General
    Replies: 1
    Last Post: 06-15-2018, 11:51 AM
  3. [SOLVED] Formula that can check for two criteria per customer when multiple customer lines exist
    By Macey351 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-05-2016, 10:11 AM
  4. [SOLVED] locate corresponding payment for customer account
    By davidktilley in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-11-2014, 01:15 PM
  5. Replies: 4
    Last Post: 11-28-2014, 07:53 AM
  6. Customer-Payment tallya across sheets
    By laxmanann in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-13-2014, 03:22 AM
  7. Customer/ Clients Payment Record.
    By businessconnect in forum Excel General
    Replies: 0
    Last Post: 10-22-2012, 06:26 AM

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