+ Reply to Thread
Results 1 to 3 of 3

Formula to show current week expenses on a different sheet

  1. #1
    Registered User
    Join Date
    01-21-2013
    Location
    Estonia
    MS-Off Ver
    Excel 2010
    Posts
    3

    Formula to show current week expenses on a different sheet

    Hello! I'm constructing a budget, where the first sheet is a overview sheet and 12 other sheets representing all months in a year. I attached an example of the file. The first sheet "Overview" shows one cost category, for which i have set monthly and weekly limits. The numbers should automatically be derived from the second sheet "Jan". There are no problems with showing monthly figures. But i want to be able to keep track of my expenses also on a weekly basis. For example for today (22.01.13), cell C9 on the Overview sheet should show a number of 3,67, because this is the only expense during this week. But, if today would be 19.1.13, cell C9 should show 49,84 (13,61+3,07+33,16). On 20.1.13 C9 should give 53,85 and on 21.1.13 it should show 3,67 (because this is already a new week). Any ideas of what i should do? Thanks
    Attached Files Attached Files

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Formula to show current week expenses on a different sheet

    hi wiljar, welcome to the forum. you can try:
    =SUMPRODUCT((Jan!C1:AG1<=TODAY())*(Jan!C1:AG1>=TODAY()-WEEKDAY(TODAY(),2)+1)*(Jan!C4:AG4))

    or in Excel 2007 & above:
    =SUMIFS(Jan!C4:AG4,Jan!C1:AG1,"<="&TODAY(),Jan!C1:AG1,">="&TODAY()-WEEKDAY(TODAY(),2)+1)

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    01-21-2013
    Location
    Estonia
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Formula to show current week expenses on a different sheet

    Thank You for this answer. I am using Excel 2010 and also i want to use these formulas directly in Google Docs, so i can hold an eye on my budget online. I can see, that Google Docs doesnt support a function called SUMIFS, but it does have a function called SUMIF and also the SUMPRODUCT function. It seemed, that the SUMIFS function did the trick in Excel 2010. When i use the proposed SUMPRODUCT function in Google Docs, the cell only shows 0,00. Any experience with Google Docs? Or maybe i can also use the function SUMIF to solve this problem?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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