+ Reply to Thread
Results 1 to 14 of 14

Formula to calculate report requirements based on activity since last report filed.

  1. #1
    Registered User
    Join Date
    04-19-2017
    Location
    Washington
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2306 Build 16.0.16529.20164) 64-bit
    Posts
    29

    Formula to calculate report requirements based on activity since last report filed.

    Hello --

    First off, shout out to the forum here. I came here with a complicated question almost a year ago and got a great answer. Since then, I've really increased my excel skills a ton, but after days of trying to crack this problem, I'm reaching out for help.

    ###

    Attached is an example of what I am working on.

    Each row is a different entity and in each of the subsequent 6 columns you see how much financial activity that entity engaged in during the months listed in the header.

    In the next 6 columns is where I am trying to apply this formula, which I imagine will wind up looking something like =IF( >200, "YES","NO") but more complicated obviously.

    Here is the rule:

    If the entity incurred more than an aggregate of $200 of activity since the last time they were required to file a report, then they have to file a report for the month where the aggregate of $200 was surpassed.

    So for example, if I have spent $500 in December, I would be required to report that immediately. But if I spent only $100 in January, I wouldn't have to report that until I spent an additional $100 in February or March. Make sense?

    I used the first 4 columns to provide an example so that someone might be able to help me.

    Another way of describing it might be: I need a way to aggregate only amounts under $200 that have been incurred since the last time an aggregate of $200 was reached.

    Best,

    -CE
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,308

    Re: Formula to calculate report requirements based on activity since last report filed.

    This

    =IF(B2>200,"Yes","No")

    copy across and down

    Or

    =IF(INDEX($B2:$G2,,MATCH(I$1,$B$1:$G$1,0))>200,"Yes","No")

    Copy across and down


    Ensure all heading are consistent: I prefer to use dates e.g. 01/01/2018 (Jan 1) and format as "mmm"

  3. #3
    Registered User
    Join Date
    04-19-2017
    Location
    Washington
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2306 Build 16.0.16529.20164) 64-bit
    Posts
    29

    Re: Formula to calculate report requirements based on activity since last report filed.

    Hey John --

    Thanks for the reply!

    So yes, =IF(B2>200,"YES","NO")is the correct formula to be applied to the entire H column, so that is squared away. Good.

    But the remainder are a bit more complicated given the rule. Your formula =IF(INDEX($B2:$G2,,MATCH(I$1,$B$1:$G$1,0))>200,"Yes","No")looks to me like it might accomplish the rule via formula, but when I put it in I-2, I get the #N/A error. I tried tinkering with it to get it to work to no avail, any tips for me to get it to work in cell I-2 of the example file?

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,308

    Re: Formula to calculate report requirements based on activity since last report filed.

    Ensure all heading are consistent: I prefer to use dates e.g. 01/01/2018 (Jan 1) and format as "mmm"
    i.e Dec and Dec not December and Dec

  5. #5
    Registered User
    Join Date
    04-19-2017
    Location
    Washington
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2306 Build 16.0.16529.20164) 64-bit
    Posts
    29

    Re: Formula to calculate report requirements based on activity since last report filed.

    Gotcha. Thanks!

    I did what you said with formatting and applied the formula, but it only returns the value "TRUE" for every cell. (See attached)

    Can you send me the sheet that you were able to get to work so I can see what I'm doing wrong?
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,308

    Re: Formula to calculate report requirements based on activity since last report filed.

    In H2

    =IF(INDEX($B2:$G2,,MATCH(H$1,$B$1:$G$1,0))>200,"Yes","No")

    Copy across and down

    I don't know you managed it, but you had two formula in one cell as below:

    =IF(INDEX($B2:$G2,,MATCH(H$1,$B$1:$G$1,0))>200,"Yes","No")=IF(INDEX($B2:$G2,,MATCH(H$1,$B$1:$G$1,0))>200,"Yes","No")

    so this will return TRUE as they are indentical

  7. #7
    Registered User
    Join Date
    04-19-2017
    Location
    Washington
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2306 Build 16.0.16529.20164) 64-bit
    Posts
    29

    Re: Formula to calculate report requirements based on activity since last report filed.

    Thanks again John, I appreciate your patience.

    So I did apply it as you said.

    It's giving me "TRUE" and "FALSE" readings instead of "YES" and "NO", which is odd to me looking at the construction of the formula. Also, its not doing what the formula needs to.

    Did you see the first 4 rows that I gave in the first example? Did the formula return the same answers that I put down for you? Unfortunately they didn't for me.

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,308

    Re: Formula to calculate report requirements based on activity since last report filed.

    See attached.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    04-19-2017
    Location
    Washington
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2306 Build 16.0.16529.20164) 64-bit
    Posts
    29

    Re: Formula to calculate report requirements based on activity since last report filed.

    Thanks! I'm not sure how i screwed up on the earlier version.

    Unfortunately though, this doesn't quite accomplish the rule: "If the entity incurred more than an aggregate of $200 of activity since the last time they were required to file a report, then they have to file a report for the month where the aggregate of $200 was surpassed. "

    See for example Row 18 and "Group 17". Because the $200 threshold was passed in January (since the filing of the last report), a report was due for that month, so I18 should read "Yes".

  10. #10
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,308

    Re: Formula to calculate report requirements based on activity since last report filed.

    For (as an example) row 18

    in H19

    =IF(SUM($B18:B18)>200,"Yes","No")

    will give results of "No", "Yes" ......."Yes"

    is this correct i.e once passed the 200 limit, it is always yes?

    Or having filed in January, it is not filed again until the next 200 threshold is reached?

  11. #11
    Registered User
    Join Date
    04-19-2017
    Location
    Washington
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2306 Build 16.0.16529.20164) 64-bit
    Posts
    29

    Re: Formula to calculate report requirements based on activity since last report filed.

    John --

    Here I uploaded what I think we should work off of, because the formula you came up with (=IF(B2>200,"Yes","No")) is already correct and will always be correct for column H.

    Once something is filed in January, nothing would have to be filed again until the aggregate total in subsequent months reached $200. Does that make sense? I understand this is confusing and I appreciate your working with me. This is a challenging formula to come up with, even though its fairly easy to do manually. If I didn't have to do it over millions of rows of data it wouldn't be an issue.
    Attached Files Attached Files

  12. #12
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,481

    Re: Formula to calculate report requirements based on activity since last report filed.

    If I interpreted correctly, If Dec is "Yes", Jan is "Yes", Feb is "No", then March will take into account the last "Yes" in Jan, sum values from Feb to March, the compare with 200?

    Try in H2:
    Please Login or Register  to view this content.
    In I2:
    Please Login or Register  to view this content.
    Drag I2 accross
    Drag all down.
    Attached Files Attached Files
    Quang PT

  13. #13
    Registered User
    Join Date
    04-19-2017
    Location
    Washington
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2306 Build 16.0.16529.20164) 64-bit
    Posts
    29

    Re: Formula to calculate report requirements based on activity since last report filed.

    Quote Originally Posted by bebo021999 View Post
    If I interpreted correctly, If Dec is "Yes", Jan is "Yes", Feb is "No", then March will take into account the last "Yes" in Jan, sum values from Feb to March, the compare with 200?

    Try in H2:
    Please Login or Register  to view this content.
    In I2:
    Please Login or Register  to view this content.
    Drag I2 accross
    Drag all down.
    Bebo --

    Your brain functions on a much higher level than I could ever hope to. This is perfect.

    Thank you for your help too John!

    CE

  14. #14
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,308

    Re: Formula to calculate report requirements based on activity since last report filed.

    All credit to Bebo: perhaps you can "Add Reputation" for him.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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: 1
    Last Post: 10-17-2016, 02:25 AM
  2. Agging report, openingbalance report,customer report vab code was not working
    By rana19 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-28-2015, 03:38 AM
  3. Replies: 4
    Last Post: 08-18-2015, 10:02 AM
  4. How to automate a monthly activity report?
    By andrewintuit in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-08-2014, 02:00 PM
  5. [SOLVED] report the date of first activity
    By shaz0503 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 05-19-2014, 12:27 AM
  6. Replies: 8
    Last Post: 08-29-2013, 06:40 PM
  7. Change form-based report to table-based report
    By drewship in forum Access Tables & Databases
    Replies: 2
    Last Post: 07-27-2009, 08:55 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