+ Reply to Thread
Results 1 to 12 of 12

Calculate active subscriptions

  1. #1
    Registered User
    Join Date
    06-16-2014
    Location
    Brasil
    MS-Off Ver
    Office 365
    Posts
    30

    Calculate active subscriptions

    Hello. i need to calculate how many active subscritions i had on each day (only "ACTIVE" on D:D cells)
    I am attaching a database with the start and end of each sibscritions
    Attached Files Attached Files

  2. #2
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,304

    Re: Calculate active subscriptions

    attached sheet has macro on green button
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    06-16-2014
    Location
    Brasil
    MS-Off Ver
    Office 365
    Posts
    30

    Re: Calculate active subscriptions

    Thank you very much!! IŽll test it right now.
    This can only be done with macro?

  4. #4
    Registered User
    Join Date
    06-16-2014
    Location
    Brasil
    MS-Off Ver
    Office 365
    Posts
    30

    Re: Calculate active subscriptions

    Quote Originally Posted by torachan View Post
    attached sheet has macro on green button
    If i update the database, get an error (attached). Could you help?
    Attached Images Attached Images
    Last edited by ignaciob; 03-17-2021 at 04:42 PM.

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,193

    Re: Calculate active subscriptions

    Post the file

  6. #6
    Registered User
    Join Date
    06-16-2014
    Location
    Brasil
    MS-Off Ver
    Office 365
    Posts
    30

    Re: Calculate active subscriptions

    Quote Originally Posted by JohnTopley View Post
    Post the file
    File attached. Thank you
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,193

    Re: Calculate active subscriptions

    Yout latest file is nit the same format as your original posted file so the VBA will fail,

  8. #8
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,304

    Re: Calculate active subscriptions

    change your code to that below
    you have moved the columns over by two compared to your original.
    torachan
    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    06-16-2014
    Location
    Brasil
    MS-Off Ver
    Office 365
    Posts
    30

    Re: Calculate active subscriptions

    Thank you very much for your time and effort, but the collums will grow every day, also the last day will grow by one every day, so i need i code that can handle that

  10. #10
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,193

    Re: Calculate active subscriptions

    You need to more clearly explain how the columns expand AND what dates constitute an Active subscription i.e are we testing Dates in Column A against a Start/Finish date? If so, which ones?

  11. #11
    Registered User
    Join Date
    06-16-2014
    Location
    Brasil
    MS-Off Ver
    Office 365
    Posts
    30

    Re: Calculate active subscriptions

    Ok, sorry if i did not made myself clear.
    Every day i download a csv file with the subscriptions data.
    Then i manually add the last day in the date list ( i did not find a way to make this list dynamic, wich the last date is the last date with data in the csv file) and then update the total subscriptions.
    Please let me know if there is something i did not made clear.

    And again, thank you very much for your time for helping me.

  12. #12
    Registered User
    Join Date
    06-16-2014
    Location
    Brasil
    MS-Off Ver
    Office 365
    Posts
    30

    Re: Calculate active subscriptions

    If someone is interested, i got a better solution, without VBA from other forum:

    =CONT.SES(BD_subscriptions_Stripe[Status];"<>canceled";BD_subscriptions_Stripe[Start (UTC)];"<="&A2;BD_subscriptions_Stripe[Current Period End (UTC)];">="&A2)

+ 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. How to handle subscriptions
    By Exc3l in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-16-2015, 11:06 PM
  2. Replies: 3
    Last Post: 09-26-2014, 11:20 AM
  3. Paid Subscriptions
    By Kyle123 in forum The Water Cooler
    Replies: 18
    Last Post: 05-31-2013, 12:02 PM
  4. [SOLVED] Report builder 2.0 - Subscriptions
    By Clash in forum Access Tables & Databases
    Replies: 2
    Last Post: 05-29-2013, 10:25 AM
  5. Manage the Personal Subscriptions Folder
    By jaslake in forum The Water Cooler
    Replies: 6
    Last Post: 10-10-2012, 05:47 PM
  6. [SOLVED] Issue - Posts that i've previously read are now showing unread in subscriptions
    By Simon Lloyd in forum Suggestions for Improvement
    Replies: 5
    Last Post: 03-27-2012, 01:53 PM
  7. calculating subscriptions
    By adykacen in forum Excel General
    Replies: 1
    Last Post: 02-22-2011, 02:40 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