+ Reply to Thread
Results 1 to 5 of 5

Month-to-date calculator for a budgeting app on Google Sheets

  1. #1
    Registered User
    Join Date
    03-08-2019
    Location
    Washington, DC/USA
    MS-Off Ver
    2016
    Posts
    5

    Month-to-date calculator for a budgeting app on Google Sheets

    Hey everyone,

    I am making a small personal budgeting sheet and am stuck now and need your help.

    So, I want to write a function that takes today's date (14th of August, for example) and compares it with my spending from the previous month's spending.


    Thank you so much in advance, I've been thinking of it for almost 3 hours!

    Please check a sample that I created from the sheet below:
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,822

    Re: Month-to-date calculator for a budgeting app on Google Sheets

    It is not a good idea to use merged cells for the dates. As today isn't really 4th August, I have put that date in cell R3 - you could subsequently put =TODAY() in that cell.

    You must also have the next date in columns B and G, i.e. 8th June in B30 and 8th July in G30, and then you can use these formulae in the cells stated:

    S14: =SUM(D$5:INDEX(D$5:D$30,MATCH(DATE(2022,6,DAY($R$3)+1),B$5:B$30,0)-1))

    S15: =SUM(I$5:INDEX(I$5:I$30,MATCH(DATE(2022,7,DAY($R$3)+1),G$5:G$30,0)-1))

    S16: =SUM(N$5:INDEX(N$5:N$30,MATCH($R$3+1,L$5:L$30,0)-1))

    These will SUM the values from row 5 up to the date specified in R3 for the appropriate month, although your layout does not make it very easy to cope with future months.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    03-08-2019
    Location
    Washington, DC/USA
    MS-Off Ver
    2016
    Posts
    5

    Red face Re: Month-to-date calculator for a budgeting app on Google Sheets

    Wow! Thanks, man, I really appreciate it.

    You deserve Excel Guru title, for sure, lol.
    The real document is different - I made a simple one for this forum to ask my question.

    Have a blessed day!

  4. #4
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,074

    Re: Month-to-date calculator for a budgeting app on Google Sheets

    With the dates filled up in each row in columns B, G and L,
    S14 =SUMIFS(D:D,B:B,"<="&DATE(YEAR(B5),MONTH(B5),DAY(TODAY())))
    S15 =SUMIFS(I:I,G:G,"<="&DATE(YEAR(G5),MONTH(G5),DAY(TODAY())))
    S16 =SUMIFS(N:N,L:L,"<="&DATE(YEAR(L5),MONTH(L5),DAY(TODAY())))

  5. #5
    Registered User
    Join Date
    03-08-2019
    Location
    Washington, DC/USA
    MS-Off Ver
    2016
    Posts
    5

    Re: Month-to-date calculator for a budgeting app on Google Sheets

    I have modified it to my original document, and it's working too! Thank you, Joseph

+ 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] I want to auto populate my bills each month into a calendar I built for budgeting
    By scottyb1977 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 01-24-2022, 09:30 PM
  2. Google Sheets: How to pull row numbers from different sheets based on date (Solved)
    By qcguys in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 13
    Last Post: 01-09-2022, 03:36 PM
  3. Google Sheets. Can I connect offline data from excel to google sheets?
    By drlemur39 in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 3
    Last Post: 11-15-2021, 10:40 AM
  4. Google Sheets Master Sheet that pulls in data from other sheets with the last edit date
    By Badvgood in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 2
    Last Post: 12-19-2020, 12:04 PM
  5. Google Apps Script for Google Sheets Pulling Formulas from Master to Several Slave Sheets
    By excelroofing in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 4
    Last Post: 08-22-2018, 02:06 AM
  6. VBA Route Calculator - Google Maps Api 22 Minutes quicker than Actual Google Website
    By lookingforhelp1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-06-2015, 01:23 PM
  7. Shopping List Calculator / Budgeting Spreadsheet
    By UTDating in forum Excel General
    Replies: 3
    Last Post: 07-09-2014, 09:02 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