+ Reply to Thread
Results 1 to 7 of 7

Using Sumifs & EDate to retrieve business model info

  1. #1
    Registered User
    Join Date
    10-22-2012
    Location
    san diego, california
    MS-Off Ver
    Excel 2010
    Posts
    5

    Using Sumifs & EDate to retrieve business model info

    Hello all,

    I want to begin by saying this will likely be difficult for me to explain, but I would assume the formula would be rather simple.

    Let me try to explain


    The objective: To be able to compare a businesses performance, separated out by state performances, on a standardized, "timing-neutral' basis. I will explain this below


    I have a business modeled out for 8 calendar years. The 8 years are broken into months (columns).

    This business is expanding into many different states, entering at different points in time during the 8 years.

    I wan't to be able to compare states based on Year 1 of when each state was entered. For instance, the California market is entered in April of Calendar year 12. The Virginia market was first entered in December of 2012. I need to compare each of these market's performances on a standardized "year one, year two, etc..." basis. Unfortunately I built out all of the state revenue and expense numbers on one single Calendar Tab for the 8 years.

    I can't just sum up January through December in every year of the 8, since none of the markets are entered at the same exact time and thus won't provide a "standardized" view of performance by state. I need to see how California performs in Year 1 vs. how Virginia performs in year one

    To make it easier, I figure in each of the 8 columns (Calendar Years) that sum up the prior 12 months (to the left of each year) to equal the Calendar year total (2012, 2013, 2014, etc....), I will change that formula to effectively equal the following:

    the sum of 12 months of revenue, whenever it may fall during the calendar years. Then, keep that logic consistent when extrapolated to 7 further 12 month periods over the 8 calendar years

    to do this, I was thinking of changing that total column to sum up only the months with revenue, then it must count those months and decide the number of further months to be summed in the following Calendar year so that "# of summed months = 12". Then I need to have the formula follow this logic for the next year, effectively counting month #1 as the month that follows the last month summed up for that previous sum of 12 months.


    I have provided an illustration in the attachment

    *** I now am asking for your assistance to create a much more dynamic formula for the Year 1, Year 2 that can easily be inserted through out the model



    I really appreciate the help guys and gals!
    Attached Files Attached Files
    Last edited by bbarnett; 04-17-2015 at 09:55 AM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Complex Formula?

    Hi, welcome to the forum

    Thanks for the title change

    Can you upload a sample of your workbook, not a picture of your data. Pictures are pretty much impossible to edit, and no-one wants to re-type your data for you
    Also, not all members can upload picture files (Company firewalls and stuff)

    Your workbook should show a small desensitized example of the data you are working with and a manual mockup of the expected results.

    (you probably need to look at using something like sumifS() with TODAY() and EDATE(TODAY(),-12)
    Last edited by FDibbins; 04-16-2015 at 06:07 PM.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    10-22-2012
    Location
    san diego, california
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Complex Formula?

    Some assistance would be much appreciated. I unfortunately need to turn this around later today.

    If more explanation is needed, please let me know.

    @FDibbins, thanks for the suggestions regarding the formula but I unfortunately looked into it and wasn't able to figure out a way to make that work. Would you be able to provide any further help on this?

  4. #4
    Registered User
    Join Date
    10-22-2012
    Location
    san diego, california
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Using Sumifs & EDate to retrieve business model info

    Since I am not getting any responses I am assuming this is just something that can not be done without an extreme amount of work going into it?

  5. #5
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Using Sumifs & EDate to retrieve business model info

    Hi
    Would something like this work, for example California Year 1?

    Please Login or Register  to view this content.
    Then repeat for other States and years.

    DBY
    Last edited by DBY; 04-21-2015 at 02:56 PM. Reason: Amended formula

  6. #6
    Registered User
    Join Date
    10-22-2012
    Location
    san diego, california
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Using Sumifs & EDate to retrieve business model info

    That gets us part of the way there and thank you very much for the effort.

    However, working with the formula you created it looks like I will need to find a way to make the "B2" start of the array in the Sum and Count formulas (=SUM(B2:INDEX(B2:Z2,25-COUNT(B2:M2)))-N2) to be dynamic. To be dynamic, the formula will need to note the cell reference that represents the last month summed up in "Year 1/2/3/etc.." and then begin the start of the array in the Sum and Count formulas with the Cell that follows that last month

    This actually did raise another question which I am sure you can answer:

    I notice the ending cell in the sum array (=SUM(B2:INDEX(B2:Z2,25-COUNT(B2:M2)))-N2), is essentially an index formula. However, I know an index formula to return a cell value, not a reference, yet in the sum formula it seems to work by returning the ending cell reference for the Sum Array. How is that?

    Thank you very much for the help.

  7. #7
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Using Sumifs & EDate to retrieve business model info

    Hi
    Yes, I see, I hadn't thought it through correctly. If the sample file is a true representation of your data layout, would you consider using a few helper cells with the date calculations? See the attached reply file as an example. Maybe this might work, it uses the SUMIFS AND EDATE function suggested by F Dibbins earlier. I had to amend the dates across the top of the sheet as these were not all entered with the correct years.

    In answer to the INDEX question. Although it will return a single value, it can also be used to return an array or range of values to a formula or function. It is very useful as replacement of Array formulas.

    It seems that this might also work, without the need for helper cells:

    Please Login or Register  to view this content.
    This is placed in cell N7 and dragged across to AA7, delete formulas in between.

    Hope this helps.
    DBY
    Attached Files Attached Files
    Last edited by DBY; 04-22-2015 at 01:49 PM. Reason: Added Offset formula

+ 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] Use an existing cell formula for creating a new more complex formula
    By dubcap01 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-23-2014, 07:41 AM
  2. Complex IF formula
    By elanum in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-12-2013, 08:12 PM
  3. More complex look up formula
    By burnsie in forum Excel General
    Replies: 2
    Last Post: 03-11-2013, 06:26 AM
  4. Need help with complex formula!
    By bcoluc1 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-20-2013, 02:07 AM
  5. Complex IF Formula
    By davo1224 in forum Excel General
    Replies: 8
    Last Post: 12-15-2010, 05:39 PM

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