Share via

Convert Accounting Period to Date in Excel

Anonymous
2024-04-11T20:04:40+00:00

I have a report that is exported out of our ERP system. Instead of providing Month and Year to reflect the months usage for that product (PS NUM). I would like to convert the "ACCTG PER" to the appropriate month and year. The trick is that "0" should equal current month and year, "1" should equal previous month and year, and so on(See "Ideal result"). The reason I want to have month and year is I would like to convert to a column and line graph so that the "Average" would be the line, and the columns would represent the actual usage of that month. The trick is that if I were to run this report next month in May. The "ACCTG PER" zero (0) would be 05/2024, and one (1) would be 04/2024. Whereas this current report 04/2024 is "ACCTG PER" (0). Also some products will not have a "0" accounting period as the system does not enter a "0" usage to the "ACCTG PER" until the month closes out. So a product can have no "ACCTG PER" for the entire month.

The trick after this would be to append the newly formatted report to a master historical file, so it would only add the new months data. Which would be to replace the "0" with the final numbers as the current months usage will continue to adjust until the new month.

BU (Product) <br><br>PS NUM USAGE QTY (Convert to Month and Year)<br><br>ACCTG PER "Ideal result" STOREROOM LOC ON HAND RO MAX UOI
CVN65 10000045 12 1 03/2024 STR03_A_01_B 25 10 20 EA
CVN65 10000045 6 2 02/2024 STR03_A_01_B 25 10 20 EA
CVN65 10000045 8 3 01/2024 STR03_A_01_B 25 10 20 EA
CVN65 10000045 7 4 12/2023 STR03_A_01_B 25 10 20 EA
CVN65 10000045 12 5 11/2023 STR03_A_01_B 25 10 20 EA
CVN65 10000045 11 6 10/2023 STR03_A_01_B 25 10 20 EA
CVN65 10000045 8 7 9/2023 STR03_A_01_B 25 10 20 EA
CVN65 10000045 9 8 8/2023 STR03_A_01_B 25 10 20 EA
CVN65 10000045 7 9 7/2023 STR03_A_01_B 25 10 20 EA
CVN65 10000045 8 10 6/2023 STR03_A_01_B 25 10 20 EA
CVN65 10000045 11 11 5/2023 STR03_A_01_B 25 10 20 EA
CVN65 10000089 98 0 4/2024 STR02_D_04_A 512 432 648 EA
CVN65 10000089 542 1 03/2024 STR02_D_04_A 512 432 648 EA
CVN65 10000089 439 2 02/2024 STR02_D_04_A 512 432 648 EA
CVN65 10000089 388 3 01/2024 STR02_D_04_A 512 432 648 EA
CVN65 10000089 330 4 12/2023 STR02_D_04_A 512 432 648 EA
CVN65 10000089 416 5 11/2023 STR02_D_04_A 512 432 648 EA
CVN65 10000089 504 6 10/2023 STR02_D_04_A 512 432 648 EA
CVN65 10000089 437 7 9/2023 STR02_D_04_A 512 432 648 EA
CVN65 10000089 599 8 8/2023 STR02_D_04_A 512 432 648 EA
CVN65 10000089 285 9 7/2023 STR02_D_04_A 512 432 648 EA
CVN65 10000089 524 10 6/2023 STR02_D_04_A 512 432 648 EA
CVN65 10000089 572 11 5/2023 STR02_D_04_A 512 432 648 EA
CVN65 10000186 400 0 4/2024 STR01_E_35_B 650 500 1000 EA
CVN65 10000186 1450 1 03/2024 STR01_E_35_B 650 500 1000 EA
CVN65 10000186 1800 2 02/2024 STR01_E_35_B 650 500 1000 EA
CVN65 10000186 1250 3 01/2024 STR01_E_35_B 650 500 1000 EA
CVN65 10000186 1700 4 12/2023 STR01_E_35_B 650 500 1000 EA
CVN65 10000186 1650 5 11/2023 STR01_E_35_B 650 500 1000 EA
CVN65 10000186 1050 6 10/2023 STR01_E_35_B 650 500 1000 EA
CVN65 10000186 1100 7 9/2023 STR01_E_35_B 650 500 1000 EA
CVN65 10000186 1050 8 8/2023 STR01_E_35_B 650 500 1000 EA
CVN65 10000186 1050 9 7/2023 STR01_E_35_B 650 500 1000 EA
CVN65 10000186 1200 10 6/2023 STR01_E_35_B 650 500 1000 EA
CVN65 10000186 1550 11 5/2023 STR01_E_35_B 650 500 1000 EA
CVN65 10000187 10 0 4/2024 STR01_B_21_B 54 20 40 EA
CVN65 10000187 20 1 03/2024 STR01_B_21_B 54 20 40 EA
CVN65 10000187 20 2 02/2024 STR01_B_21_B 54 20 40 EA
CVN65 10000187 22 3 01/2024 STR01_B_21_B 54 20 40 EA
CVN65 10000187 30 4 12/2023 STR01_B_21_B 54 20 40 EA
CVN65 10000187 30 5 11/2023 STR01_B_21_B 54 20 40 EA
CVN65 10000187 20 6 10/2023 STR01_B_21_B 54 20 40 EA
CVN65 10000187 20 7 9/2023 STR01_B_21_B 54 20 40 EA
CVN65 10000187 30 8 8/2023 STR01_B_21_B 54 20 40 EA
CVN65 10000187 20 9 7/2023 STR01_B_21_B 54 20 40 EA
CVN65 10000187 20 10 6/2023 STR01_B_21_B 54 20 40 EA
CVN65 10000187 40 11 5/2023 STR01_B_21_B 54 20 40 EA

I would add a slicer/ Filter to review an individual Product. As I want to identify any product which had a demand greater than 30% above the historical average, to include the opposite 30% below the average historical demand. As in the example below the two months that would be "flagged" would be November (23) and March (24).

Microsoft 365 and Office | Excel | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

3 answers

Sort by: Most helpful
  1. Anonymous
    2024-04-12T05:13:21+00:00

    You are welcome:) You may also give feedback on it.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2024-04-12T03:46:37+00:00

    This solves my Accounting Period issue! Thank you! Now I just need to get a better grasp on the appending data piece.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2024-04-12T03:14:18+00:00

    =EOMONTH(TODAY(),-D2-1)+1

    Was this answer helpful?

    0 comments No comments