+ Reply to Thread
Results 1 to 5 of 5

Google spreadsheet formula projection

  1. #1
    Registered User
    Join Date
    05-24-2019
    Location
    London
    MS-Off Ver
    Microsoft Office Professional Plus 2016 | for Office 365 MSO | 32-bit
    Posts
    23

    Google spreadsheet formula projection

    Hi guys

    I hope you all are having a nice summer

    I would like to do a chart projection based on date (day of the month) and revenue:

    I need a formula to calculate the average revenue of each day of the month for the past year (sheet 2) and then project on a chart what I should achieve. For exemple the first day of this month should be above $1,637.81 https://docs.google.com/spreadsheets...it?usp=sharing

    Could you help me please?

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,819

    Re: Google spreadsheet formula projection

    My first thought is that this is an easy SUMIFS()/12 or AVERAGEIFS(), if there was a column with "day of the month" in sheet 2. So, I go into sheet2 and add a day of the month column using the DAY() function ( https://support.google.com/docs/answer/3093040 ). =day(A2) in C2.

    Then the sum becomes a relatively simple SUMIFS() function =sumifs(Sheet2!$B$2:$B$401,Sheet2!$C$2:$C$401,A2,Sheet2!$A$2:$A$401,">="&edate(today(),-13))/12 or averageifs() with the same criteria.

    I wasn't exactly sure how you wanted to formulate the "for the past year" part of the criteria. I went with 13 months before today, but you may want the eomonth() function (https://support.google.com/docs/answer/3093044 ) to get the last day of the month 13 months before today or some other logic. You may need to spend a few minutes thinking more carefully about what exactly you mean by "for the past year" as you formulate that criteria in the final function.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Registered User
    Join Date
    05-24-2019
    Location
    London
    MS-Off Ver
    Microsoft Office Professional Plus 2016 | for Office 365 MSO | 32-bit
    Posts
    23

    Re: Google spreadsheet formula projection

    Hi,

    Thank you so much for your help. I forgot to mention that I can't change Sheet 2 as it's automatically generated by a script every day. So even if I change it today it will get overwritten the day after...

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,819

    Re: Google spreadsheet formula projection

    I can't change Sheet 2 as it's automatically generated by a script every day.
    And this script cannot be modified (or you cannot request a modification of the script) so that it adds the extra column? or does not overwrite the helper column? or to add the extra column after writing the data to the sheet? Could you add the helper column after the data is written to the sheet? Could the helper column be kept in sheet1? That helper column plus a sumifs() or averageifs() still seems like the easiest way to me.

    If the "day of month" is really not possible, I could see a sequence of 12 VLOOKUPS() summed up, using a combination of today(), edate(), and/or eomonth() that would do this.
    =vlookup(eomonth(today(),-1)+1,sheet2!$A$2:$B$2000,2,TRUE)+vlookup(eomonth(today(),-2)+1,sheet2!$A$2:$B$2000,2,TRUE)+more vlookups

  5. #5
    Registered User
    Join Date
    05-24-2019
    Location
    London
    MS-Off Ver
    Microsoft Office Professional Plus 2016 | for Office 365 MSO | 32-bit
    Posts
    23

    Re: Google spreadsheet formula projection

    Unfortunately, I can't change sheet 2 at all.
    I'm sure there is an easy formula to take DD in sheet 1 column A in YYYY-MM-DD from sheet 2

+ 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. Formula to calculate PTO projection
    By atadam in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-06-2019, 02:57 PM
  2. Getting Formula Parse Error on Google Spreadsheet
    By Gemma Chick in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-18-2018, 02:48 PM
  3. Income Projection/ Revenue Projection templates
    By penza in forum Excel General
    Replies: 1
    Last Post: 10-02-2015, 06:36 AM
  4. Replies: 2
    Last Post: 09-01-2015, 12:43 PM
  5. Projection formula
    By dougmcc1 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 12-18-2012, 01:35 PM
  6. Time and demand Projection Formula
    By Tictac in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-02-2010, 02:46 PM
  7. completion date projection formula
    By paankadu in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-17-2008, 05:02 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