+ Reply to Thread
Results 1 to 14 of 14

Quarterly/YTD Calculation

  1. #1
    Registered User
    Join Date
    07-12-2019
    Location
    Seattle, WA
    MS-Off Ver
    2016
    Posts
    8

    Quarterly/YTD Calculation

    Hello! I need assistance creating a calculation (in a new table) based on data in a Pivot table to Sum quarterly (Year-to-Date) counts of Actuals IF we've reached the end of a particular month, as such:

    PIVOT TABLE
    MONTH/YEAR AAA BBB CCC Grand Total
    18-Nov 1.1 8.8 3.3 13.2
    18-Dec 2.2 7.7 4.4 14.3
    19-Jan 3.3 6.6 5.5 15.4


    In another Table, I want to (automate) the Quarterly percentage of ACTUAL headcount not Forecast (although populated) only IF we've reached EOMonth by Dept:
    1Q = Nov/Dec/Jan 2Q = Feb/Mar/Apr 3Q =May/Jun/Jul 4Q =Aug/Sep/Oct, and Fiscal YTD.
    In other words, I only want to Sum counts for Nov thru June but update/include July numbers once they become Actual. 4Q should remain Blank until Aug numbers are reported after Aug 31st. To that end, I was trying to create a SumIF or SumProduct/EOMonth/RoundUp statement/formula to group the data (%) by Quarters and Fiscal YTD but couldn't get it to work.

    NEW TABLE/END RESULT
    TYPE 1Q19 2Q19 3Q19 4Q19 FY19YTD
    AAA 10% 20% 10% 20% 40%
    BBB 20% 30% 20% 30% 70%
    CCC 30% 15% 30% 15% 75%


    FORMULA USED:
    =SUMPRODUCT((ROUNDUP(MONTH($B$5:$B$7)/3,0)=ROWS($C$5:C5))*$G$5:$G$7)

    Thanking you in advance for your time and consideration.
    Last edited by Laci07; 07-12-2019 at 02:27 PM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Quarterly/YTD Calculation

    Welcome to the forum.

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    07-12-2019
    Location
    Seattle, WA
    MS-Off Ver
    2016
    Posts
    8
    =iferror(sumproduct(($a$5:$a$12=columns($a$1:a$1))*($c$4:$f$4=$p4)*($c$5:$f$12))/sumproduct(($a$5:$a$12=columns($a$1:a$1))*($g$5:$g$12)),"")
    Last edited by Laci07; 07-17-2019 at 09:45 AM. Reason: delete

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Quarterly/YTD Calculation

    We do not need nor do we ask to see your real data - just a sample file mocked up manually. You can create that at home and upload it. Read my instructions again, which make this clear.

    Your 'basic' information is a bit too basic. What you have failed to show us are the formulae that you have tried and failed to get to work. Share those and we may be able to make a small tweak to them so that they work for you. You will probably need to make use of the TODAY() function, but I am not going to guess at a formula.

    Please provide the formulae requested.

  5. #5
    Registered User
    Join Date
    07-12-2019
    Location
    Seattle, WA
    MS-Off Ver
    2016
    Posts
    8

    Re: Quarterly/YTD Calculation

    Hello I provided the additional information requested.....

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Quarterly/YTD Calculation

    Where are the formulae I asked to see, please?

  7. #7
    Registered User
    Join Date
    07-12-2019
    Location
    Seattle, WA
    MS-Off Ver
    2016
    Posts
    8

    Re: Quarterly/YTD Calculation

    Formula used:
    =sumproduct((roundup(month($b$5:$b$7)/3,0)=rows($c$5:c5))*$g$5:$g$7)

  8. #8
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,567

    Re: Quarterly/YTD Calculation

    If I understand:
    1. A helper column, which may be hidden for aesthetic purposes, will assign the quarter.
    The helper column may be populated using: =CHOOSE(MONTH(B5),1,2,2,2,3,3,3,4,4,4,1,1)
    2. The quarterly values may be populated using:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    As you are not allowed to upload files, please make specific references to the file included*, assuming you are allowed to download, so that we can make the appropriate adjustments.
    *As in: "The value in cell K5 should be... because..."
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  9. #9
    Registered User
    Join Date
    07-12-2019
    Location
    Seattle, WA
    MS-Off Ver
    2016
    Posts
    8

    Re: Quarterly/YTD Calculation

    Thanks a million! The formula worked Perfectly

  10. #10
    Registered User
    Join Date
    07-12-2019
    Location
    Seattle, WA
    MS-Off Ver
    2016
    Posts
    8

    Re: Quarterly/YTD Calculation

    Is there a more efficient way to calculate Fiscal YTD (Column O in this example) other than =SUM(K5:N5), which returns an error if I adjust Sliders to only see 1QTR (and not 2QTR or 3QTR)???

  11. #11
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,567

    Re: Quarterly/YTD Calculation

    I can not replicate the issue.
    First I can't produce a slicer for the table in columns J:O that would allow me to only see 1QTR. The slicer choices I get are: TYPE, 1Q19, 2Q19, 3Q19, 4Q19 and FY19YTD.
    Second when I delete the columns 2QTR:4QTR (which I assume the slicer does) the FY19YTD column still yields answers.
    It may help if you provide more information, however in this instance not being able to see a sample limits my understanding of the problem.
    Sorry not to be of more help.

  12. #12
    Registered User
    Join Date
    07-12-2019
    Location
    Seattle, WA
    MS-Off Ver
    2016
    Posts
    8

    Re: Quarterly/YTD Calculation

    see attached Screen prints of Examples.
    I hope this attached correctly

    FORMULA USED IN FYTD Column (returns #Value! Error):
    =SUMIFS(INDEX($LC24:$LK$30,MATCH($N$4,$LB$25:$LB$30,0),),$LC$24:$LK$24,”<=”&$A$1,$LC$4:$LC$15,”>=”&DATE(YEAR($LC$4),1,1))

    Thanks much!
    Attached Files Attached Files
    Last edited by Laci07; 07-18-2019 at 02:06 PM. Reason: added formula used

  13. #13
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Quarterly/YTD Calculation

    Please attach the Excel workbook - not an image of it.

  14. #14
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,567

    Re: Quarterly/YTD Calculation

    As Ali states I would really need to see the .xlsx file from which the screen shot was taken. The screen shot displays a table in the range M4:R7. The formula references ranges and cells that are not shown (except cell N4), so I don't know what is in those cells to be able to troubleshoot the issue.
    A couple of things that the screen shots do show:
    1. In the top screen shot R4 populates while R5:R7 display errors. This sometimes indicates that the formula should be array entered. Select cell R4, Press the F2 key, Simultaneously press the Ctrl, Shift and Enter keys, drag the fill handle down.
    2. In the bottom screen shot R4 and R6 are displaying averages as opposed to sums, so it would seem AVERAGEIFS would be the more appropriate function.
    Sorry not to be of more help.

+ 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. YTD Calculation with Quarterly Performance
    By wjw0599 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-19-2015, 07:45 AM
  2. Replies: 1
    Last Post: 03-03-2015, 03:52 AM
  3. Simple Quarterly Calculation
    By ckatzman in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-09-2013, 03:44 PM
  4. Replies: 1
    Last Post: 07-05-2012, 03:59 AM
  5. Quarterly Sum
    By bobalew in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-21-2008, 12:15 PM
  6. [SOLVED] Quarterly tax percentages
    By viz in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 PM
  7. [SOLVED] Quarterly tax percentages
    By viz in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM

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