+ Reply to Thread
Results 1 to 3 of 3

Sum non-zero Monthly revenue

  1. #1
    Registered User
    Join Date
    11-17-2021
    Location
    California
    MS-Off Ver
    2017
    Posts
    1

    Sum non-zero Monthly revenue

    Hello ExcelForum Community!

    I have a dataset with monthly revenue as columns and rows as different customers. M1 denotes the first month of the calendar year, M2 the second, and so on...I am trying to calculate the quarterly revenue a customer brings in across the year. The issue is that some customers do not have consecutive/consistent monthly revenue and so a customer may have revenue in M1-M2, none in M3, and then resume business in M4 (as shown in the table below & attached workbook). Consequently, a simple sum of M1-M3 revenues for the Q1 revenue by customer wouldn't work. For each customer, the Q1 revenue is equal to the first three months of revenue above 0, Q2 revenue is equal to the next three months of revenue above 0 (if data/revenue exists for the customer). Any help on a formula that would calculate the quarterly revenue by summing only the non-zero values throughout the year?

    Please see below for a sample table and I've also attached excel file with the sample data.

    In the table below, for customer 1 in row X, the ideal Q1 revenue calculation would be 800 (100 in M1, 200 in M3, and 500 in M4). The Q1 revenue for Customer 2 in Row 3 would be 450 (100 in M1, 250 in M2, and 100 in M3).

    Customer Size M1 M2 M3 M4 M5 M6 M7 M8 M9 M10 M11 M12 Q1 Q2 Q3 Q4
    Customer 1 Large 100 0 200 500 600 0 0 600 700 100 150 200 800 1400
    Customer 2 Small 100 250 100 0 0 600 500 400 450 450 450 450 450 1500
    Customer 3 Medium 100 0 200 500 600 0 0 600 700 100 0 0
    Customer 4 Small 100 150 150 50 50 50 50 25 25 25 25 25


    Thank you and pls let me know if further info is needed from my end!
    Attached Files Attached Files

  2. #2
    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,169

    Re: Sum non-zero Monthly revenue

    Having a variable number of months per quarter is rather meaningless as you cannot compare quarters between customers if they are are based on different criteria.

    Potentially Q1 could be M1 M4,M5 [or any other combination if there are several zero months] based on your logic
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

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

    Re: Sum non-zero Monthly revenue

    try below formula in O2, copy and paste across
    =SUM($C2:INDEX($A2:$N2,IFERROR(AGGREGATE(15,6,COLUMN($C2:$N2)/($C2:$N2>0),RIGHT(O$1,1)*3),COLUMN($N2))))-IF(COLUMNS($O2:O2)=1,0,SUM(N2:$O2))
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Samba

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

+ 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] Monthly Deferred Revenue
    By Dave350z in forum Excel General
    Replies: 6
    Last Post: 10-16-2021, 11:15 AM
  2. [SOLVED] Monthly revenue totals
    By Adalom in forum Excel General
    Replies: 3
    Last Post: 07-13-2021, 01:24 PM
  3. Calculate monthly revenue target
    By MatthewC83 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-05-2021, 06:31 AM
  4. Monthly Unearned Revenue
    By AnnieB87 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-14-2021, 11:04 AM
  5. Complex converting yearly revenue to monthly
    By misterv in forum Excel General
    Replies: 8
    Last Post: 01-19-2020, 03:17 PM
  6. Replies: 1
    Last Post: 08-08-2019, 10:23 AM
  7. Tracking Monthly Revenue when a job rolls over into next month
    By phimutau in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-28-2010, 01:01 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