+ Reply to Thread
Results 1 to 9 of 9

Formula to get the desired average at the end of a week

  1. #1
    Forum Contributor
    Join Date
    06-08-2021
    Location
    Toronto
    MS-Off Ver
    2016
    Posts
    101

    Formula to get the desired average at the end of a week

    hey guys,

    I have attached a sample file. In the file, in Week 3 (highlighted), the weekly average is 2051.5. This is based on the values for Mon and Tue in the table. The expected weekly average should be 2000. Based on this criteria, how do I write a formula in cells B6, D6, F6, H6, J6, L6 and N6, that tells me, to achieve the 2000 weekly average value, the values for wed, thu, fri, sat and sun should be this much. The values in bold are the daily targets and weekly average targets.

    I hope my explanation above makes sense. If not, please feel free to ask your questions so that we can find a solution together.

    Appreciate any help.

    thanks

    VJ
    Attached Files Attached Files
    Last edited by Vj Raj; 11-17-2021 at 10:49 AM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,987

    Re: Formula to get the desired average at the end of a week

    I don't think you can do that, because any such formula must refer to all cells for each day, therefore referring to itself, and that will create circular references. I tried.

    However, you can have a single formula that will give you the average number you must reach in all blank days:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    See suggestion in attached.
    Attached Files Attached Files
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Expert
    Join Date
    01-25-2011
    Location
    Belgium, Alveringem
    MS-Off Ver
    Excel 2003, 2007, 365
    Posts
    1,449

    Re: Formula to get the desired average at the end of a week

    i'm with a circulair problem when using that value in columns B,D,F,H,J,L,...
    Please Login or Register  to view this content.
    Edit : almost the same formula as previous, 1st part for count(...)=0 is unnecessary
    Attached Files Attached Files
    Last edited by bsalv; 11-17-2021 at 11:34 AM.
    Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

  4. #4
    Forum Contributor
    Join Date
    06-08-2021
    Location
    Toronto
    MS-Off Ver
    2016
    Posts
    101

    Re: Formula to get the desired average at the end of a week

    Hi Jeff,

    Thank you so much. The formula worked like a charm. I was getting the circular ref error earlier. Now I can use the value in the added column and reference that to the weekdays using maybe a WEEKDAY formula. I might have to make some changes to the table to make it work. But, my issue is solved for now.

    VJ

  5. #5
    Forum Contributor
    Join Date
    06-08-2021
    Location
    Toronto
    MS-Off Ver
    2016
    Posts
    101

    Re: Formula to get the desired average at the end of a week

    Hey Bsalv,

    You gave me a solution for my next step of getting the value in the cells for each weekday. I really appreciate the help.

    VJ

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,987

    Re: Formula to get the desired average at the end of a week

    You're welcome, and thanks for the rep! I love Toronto, beautiful city. I haven't been back there since 1980.

    If your question has been answered please mark your thread as "Solved" so that members will know by looking at the thread title that your problem is solved. Go to the menu immediately above your first post to the thread and click on Thread Tools. From the dropdown menu select "Mark this thread as solved..."

  7. #7
    Forum Expert
    Join Date
    01-25-2011
    Location
    Belgium, Alveringem
    MS-Off Ver
    Excel 2003, 2007, 365
    Posts
    1,449

    Re: Formula to get the desired average at the end of a week

    You gave me a solution for my next step of getting the value in the cells for each weekday.
    Yes, but with a small circular reference problem ?

  8. #8
    Forum Contributor
    Join Date
    06-08-2021
    Location
    Toronto
    MS-Off Ver
    2016
    Posts
    101

    Re: Formula to get the desired average at the end of a week

    Yes, I am working on fixing it now. If I find a solution for that, I will update the post with the solution.

    Thank you

    VJ

  9. #9
    Forum Contributor
    Join Date
    06-08-2021
    Location
    Toronto
    MS-Off Ver
    2016
    Posts
    101

    Re: Formula to get the desired average at the end of a week

    Quote Originally Posted by bsalv View Post
    Yes, but with a small circular reference problem ?
    It seems like the circular ref problem is occurring because of the empty cells for future weeks. I tried adding in random values for future weeks and it solved the problem. So as I input values for future weeks the issue will correct itself.

    This is because the formula we've used is
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and there is no value in R8 because it is the weekly average for Week 5 and we are currently in Week 3. The same happens for other future weeks too. But, entering values for future weeks seem to solve this problem

    VJ

+ 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. Rolling 12 Week Total Or Average Formula
    By exceln00b0151 in forum Excel Formulas & Functions
    Replies: 24
    Last Post: 01-13-2021, 12:07 PM
  2. [SOLVED] Pivot Average is not populating desired result
    By mrteater in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 12-28-2020, 12:38 PM
  3. [SOLVED] Require Formula To Calculate Rolling Average For Each Week, Data With Multiple Years
    By JP24357s in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-10-2019, 10:47 AM
  4. How to Structure Formula for a 4 Week Rolling Average
    By EverClever in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-26-2018, 05:20 AM
  5. Average Costs for desired data
    By gbcpurdue in forum Excel General
    Replies: 2
    Last Post: 04-07-2012, 11:09 AM
  6. Replies: 6
    Last Post: 06-09-2011, 09:00 AM
  7. Replies: 1
    Last Post: 09-20-2010, 07:06 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