+ Reply to Thread
Results 1 to 5 of 5

Summing Values Based On When They Occured In A Fiscal Year

  1. #1
    Forum Contributor Mvaldesi's Avatar
    Join Date
    01-21-2011
    Location
    Plano, TX
    MS-Off Ver
    MS365 (PC) v.2108
    Posts
    259

    Summing Values Based On When They Occured In A Fiscal Year

    Hello, Gurus!

    I need a bit of help, and have attached some sample data for your reference:

    On the "Summary" tab, I'm totaling the number of wellness hours (column G) an associate has used as documented on the "Occurrence" tab's column F. The problem is, our wellness hours reset at the beginning of each fiscal year. I failed to account for that, so the formula is summing ALL wellness hours from 2023 and 2024 so far meaning associates are showing negative numbers against their 32 hour full-time allotment.

    I need to fix the formula so that it only totals wellness hours for the fiscal year in which it occurred (the 'Date' field on the "Occurrence" tab) as determined by the date the file is opened, i.e.: TODAY(). So when a user opens up the file "today," fiscal 2024, it only total wellness used in fiscal 2024, if that makes it any clearer. Our fiscal calendar is on the "Calendar" tab.

    I appreciate everyone's time and consideration, and look forward to any help you can offer. Thanks in advance!
    Attached Files Attached Files
    Last edited by Mvaldesi; 02-29-2024 at 02:38 PM.

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,789

    Re: Summing Values Based On When They Occured In A Fiscal Year

    personally, as you have every date and a fiscal , then I would add fiscal as a helper column, into the occurrences and add it as a main header in the summary - next to where you have today() - so the date is looked
    so Summary!Q2
    =INDEX(Calendar!B:B,MATCH(TODAY(),Calendar!A:A,0))
    and then on the occurrence have a column
    column J
    =INDEX(Calendar!B:B,MATCH(Occurrences!A165,Calendar!A:A,0))
    now you can just sumifs() and test the column J is in current fiscal when the spreadsheet is opened

    thats what i would do - then any query you can see the fiscal being used in the summary and the fiscal assigned to the occurrence

    =IFERROR(VLOOKUP(A2,'Master Roster'!A:I,9,FALSE)-SUMIFS(Occurrences!F:F,Occurrences!B:B,Summary!A2,Occurrences!J:J,Summary!$Q$2),"")

    only because in the past when someone comes back and queries this sort of stuff or agues about it - you have the document showing the fiscal info and not a hidden formula doing loads of calcs - especially to senior management/board or if used in any dispute , can see the "working" if you like
    any just my personal view - more about company processes then strictly about excel functions

    also you could just overwrite Q2 to 2023 or 2022 etc and then show results for that fiscal and save as a record for that fiscal year
    Attached Files Attached Files
    Last edited by etaf; 02-29-2024 at 03:46 PM.
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Contributor Mvaldesi's Avatar
    Join Date
    01-21-2011
    Location
    Plano, TX
    MS-Off Ver
    MS365 (PC) v.2108
    Posts
    259

    Re: Summing Values Based On When They Occured In A Fiscal Year

    Hello, and thank you, etaf!

    I think I see what you're going for; I'll try your methodology, and see if I can get it to work.

    Thank you!

  4. #4
    Forum Contributor Mvaldesi's Avatar
    Join Date
    01-21-2011
    Location
    Plano, TX
    MS-Off Ver
    MS365 (PC) v.2108
    Posts
    259

    Re: Summing Values Based On When They Occured In A Fiscal Year

    Following up, etaf, your solution working perfectly. Thank you! rep has been sent, and I'm marking this thread SOLVED.

  5. #5
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,789

    Re: Summing Values Based On When They Occured In A Fiscal Year

    You are welcome

+ 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. Replies: 13
    Last Post: 10-29-2019, 07:55 AM
  2. [SOLVED] Extracting Fiscal Year / Financial Year based on the Quarters using the
    By Asad Mir in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-18-2019, 08:55 AM
  3. [SOLVED] Delete Columns Macro, Based on Creating a Fiscal Year, Based on Today's Date
    By DemRulesDoe in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-23-2018, 11:02 AM
  4. [SOLVED] How to find a value based on fiscal year end
    By cobo1981 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-16-2014, 01:04 PM
  5. how to convert date to fiscal year if fiscal year start at 16th or 17th of July
    By sushil shakya in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-28-2013, 03:32 AM
  6. adding based on fiscal year
    By mamig in forum Excel General
    Replies: 4
    Last Post: 04-06-2010, 11:19 AM
  7. To automatically give fiscal period/fiscal year
    By Turnipboy in forum Excel General
    Replies: 7
    Last Post: 01-19-2006, 05:15 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